Skip to content

Commit a164336

Browse files
feat: search_tool migrate to bring you own tool of Responses API
1 parent 5259e5e commit a164336

49 files changed

Lines changed: 2473 additions & 1869 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

codex-rs/app-server-protocol/schema/json/ClientRequest.json

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,6 +1474,12 @@
14741474
"name": {
14751475
"type": "string"
14761476
},
1477+
"namespace": {
1478+
"type": [
1479+
"string",
1480+
"null"
1481+
]
1482+
},
14771483
"type": {
14781484
"enum": [
14791485
"function_call"
@@ -1491,6 +1497,47 @@
14911497
"title": "FunctionCallResponseItem",
14921498
"type": "object"
14931499
},
1500+
{
1501+
"properties": {
1502+
"arguments": true,
1503+
"call_id": {
1504+
"type": [
1505+
"string",
1506+
"null"
1507+
]
1508+
},
1509+
"execution": {
1510+
"type": "string"
1511+
},
1512+
"id": {
1513+
"type": [
1514+
"string",
1515+
"null"
1516+
],
1517+
"writeOnly": true
1518+
},
1519+
"status": {
1520+
"type": [
1521+
"string",
1522+
"null"
1523+
]
1524+
},
1525+
"type": {
1526+
"enum": [
1527+
"tool_search_call"
1528+
],
1529+
"title": "ToolSearchCallResponseItemType",
1530+
"type": "string"
1531+
}
1532+
},
1533+
"required": [
1534+
"arguments",
1535+
"execution",
1536+
"type"
1537+
],
1538+
"title": "ToolSearchCallResponseItem",
1539+
"type": "object"
1540+
},
14941541
{
14951542
"properties": {
14961543
"call_id": {
@@ -1580,6 +1627,41 @@
15801627
"title": "CustomToolCallOutputResponseItem",
15811628
"type": "object"
15821629
},
1630+
{
1631+
"properties": {
1632+
"call_id": {
1633+
"type": [
1634+
"string",
1635+
"null"
1636+
]
1637+
},
1638+
"execution": {
1639+
"type": "string"
1640+
},
1641+
"status": {
1642+
"type": "string"
1643+
},
1644+
"tools": {
1645+
"items": true,
1646+
"type": "array"
1647+
},
1648+
"type": {
1649+
"enum": [
1650+
"tool_search_output"
1651+
],
1652+
"title": "ToolSearchOutputResponseItemType",
1653+
"type": "string"
1654+
}
1655+
},
1656+
"required": [
1657+
"execution",
1658+
"status",
1659+
"tools",
1660+
"type"
1661+
],
1662+
"title": "ToolSearchOutputResponseItem",
1663+
"type": "object"
1664+
},
15831665
{
15841666
"properties": {
15851667
"action": {

codex-rs/app-server-protocol/schema/json/EventMsg.json

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5286,6 +5286,12 @@
52865286
"name": {
52875287
"type": "string"
52885288
},
5289+
"namespace": {
5290+
"type": [
5291+
"string",
5292+
"null"
5293+
]
5294+
},
52895295
"type": {
52905296
"enum": [
52915297
"function_call"
@@ -5303,6 +5309,47 @@
53035309
"title": "FunctionCallResponseItem",
53045310
"type": "object"
53055311
},
5312+
{
5313+
"properties": {
5314+
"arguments": true,
5315+
"call_id": {
5316+
"type": [
5317+
"string",
5318+
"null"
5319+
]
5320+
},
5321+
"execution": {
5322+
"type": "string"
5323+
},
5324+
"id": {
5325+
"type": [
5326+
"string",
5327+
"null"
5328+
],
5329+
"writeOnly": true
5330+
},
5331+
"status": {
5332+
"type": [
5333+
"string",
5334+
"null"
5335+
]
5336+
},
5337+
"type": {
5338+
"enum": [
5339+
"tool_search_call"
5340+
],
5341+
"title": "ToolSearchCallResponseItemType",
5342+
"type": "string"
5343+
}
5344+
},
5345+
"required": [
5346+
"arguments",
5347+
"execution",
5348+
"type"
5349+
],
5350+
"title": "ToolSearchCallResponseItem",
5351+
"type": "object"
5352+
},
53065353
{
53075354
"properties": {
53085355
"call_id": {
@@ -5392,6 +5439,41 @@
53925439
"title": "CustomToolCallOutputResponseItem",
53935440
"type": "object"
53945441
},
5442+
{
5443+
"properties": {
5444+
"call_id": {
5445+
"type": [
5446+
"string",
5447+
"null"
5448+
]
5449+
},
5450+
"execution": {
5451+
"type": "string"
5452+
},
5453+
"status": {
5454+
"type": "string"
5455+
},
5456+
"tools": {
5457+
"items": true,
5458+
"type": "array"
5459+
},
5460+
"type": {
5461+
"enum": [
5462+
"tool_search_output"
5463+
],
5464+
"title": "ToolSearchOutputResponseItemType",
5465+
"type": "string"
5466+
}
5467+
},
5468+
"required": [
5469+
"execution",
5470+
"status",
5471+
"tools",
5472+
"type"
5473+
],
5474+
"title": "ToolSearchOutputResponseItem",
5475+
"type": "object"
5476+
},
53955477
{
53965478
"properties": {
53975479
"action": {

codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13801,6 +13801,12 @@
1380113801
"name": {
1380213802
"type": "string"
1380313803
},
13804+
"namespace": {
13805+
"type": [
13806+
"string",
13807+
"null"
13808+
]
13809+
},
1380413810
"type": {
1380513811
"enum": [
1380613812
"function_call"
@@ -13818,6 +13824,47 @@
1381813824
"title": "FunctionCallResponseItem",
1381913825
"type": "object"
1382013826
},
13827+
{
13828+
"properties": {
13829+
"arguments": true,
13830+
"call_id": {
13831+
"type": [
13832+
"string",
13833+
"null"
13834+
]
13835+
},
13836+
"execution": {
13837+
"type": "string"
13838+
},
13839+
"id": {
13840+
"type": [
13841+
"string",
13842+
"null"
13843+
],
13844+
"writeOnly": true
13845+
},
13846+
"status": {
13847+
"type": [
13848+
"string",
13849+
"null"
13850+
]
13851+
},
13852+
"type": {
13853+
"enum": [
13854+
"tool_search_call"
13855+
],
13856+
"title": "ToolSearchCallResponseItemType",
13857+
"type": "string"
13858+
}
13859+
},
13860+
"required": [
13861+
"arguments",
13862+
"execution",
13863+
"type"
13864+
],
13865+
"title": "ToolSearchCallResponseItem",
13866+
"type": "object"
13867+
},
1382113868
{
1382213869
"properties": {
1382313870
"call_id": {
@@ -13907,6 +13954,41 @@
1390713954
"title": "CustomToolCallOutputResponseItem",
1390813955
"type": "object"
1390913956
},
13957+
{
13958+
"properties": {
13959+
"call_id": {
13960+
"type": [
13961+
"string",
13962+
"null"
13963+
]
13964+
},
13965+
"execution": {
13966+
"type": "string"
13967+
},
13968+
"status": {
13969+
"type": "string"
13970+
},
13971+
"tools": {
13972+
"items": true,
13973+
"type": "array"
13974+
},
13975+
"type": {
13976+
"enum": [
13977+
"tool_search_output"
13978+
],
13979+
"title": "ToolSearchOutputResponseItemType",
13980+
"type": "string"
13981+
}
13982+
},
13983+
"required": [
13984+
"execution",
13985+
"status",
13986+
"tools",
13987+
"type"
13988+
],
13989+
"title": "ToolSearchOutputResponseItem",
13990+
"type": "object"
13991+
},
1391013992
{
1391113993
"properties": {
1391213994
"action": {

0 commit comments

Comments
 (0)