Move web search config under tools.web_search

This commit is contained in:
Rohan Mehta
2026-03-06 13:51:29 -05:00
parent b2263a7db6
commit d490664e4d
24 changed files with 4267 additions and 460 deletions

View File

@@ -352,16 +352,6 @@
"type": "null"
}
]
},
"web_search_config": {
"anyOf": [
{
"$ref": "#/definitions/WebSearchConfig"
},
{
"type": "null"
}
]
}
},
"type": "object"
@@ -638,20 +628,20 @@
}
]
},
"web_search": {
"tools": {
"anyOf": [
{
"$ref": "#/definitions/WebSearchMode"
"$ref": "#/definitions/ToolsV2"
},
{
"type": "null"
}
]
},
"web_search_config": {
"web_search": {
"anyOf": [
{
"$ref": "#/definitions/WebSearchConfig"
"$ref": "#/definitions/WebSearchMode"
},
{
"type": "null"
@@ -741,9 +731,13 @@
]
},
"web_search": {
"type": [
"boolean",
"null"
"anyOf": [
{
"$ref": "#/definitions/WebSearchToolConfig"
},
{
"type": "null"
}
]
}
},
@@ -758,42 +752,6 @@
],
"type": "string"
},
"WebSearchConfig": {
"additionalProperties": false,
"properties": {
"filters": {
"anyOf": [
{
"$ref": "#/definitions/WebSearchFilters"
},
{
"type": "null"
}
]
},
"search_context_size": {
"anyOf": [
{
"$ref": "#/definitions/WebSearchContextSize"
},
{
"type": "null"
}
]
},
"user_location": {
"anyOf": [
{
"$ref": "#/definitions/WebSearchUserLocation"
},
{
"type": "null"
}
]
}
},
"type": "object"
},
"WebSearchContextSize": {
"enum": [
"low",
@@ -802,30 +760,7 @@
],
"type": "string"
},
"WebSearchFilters": {
"additionalProperties": false,
"properties": {
"allowed_domains": {
"items": {
"type": "string"
},
"type": [
"array",
"null"
]
}
},
"type": "object"
},
"WebSearchMode": {
"enum": [
"disabled",
"cached",
"live"
],
"type": "string"
},
"WebSearchUserLocation": {
"WebSearchLocation": {
"additionalProperties": false,
"properties": {
"city": {
@@ -851,23 +786,52 @@
"string",
"null"
]
},
"type": {
"allOf": [
{
"$ref": "#/definitions/WebSearchUserLocationType"
}
],
"default": "approximate"
}
},
"type": "object"
},
"WebSearchUserLocationType": {
"WebSearchMode": {
"enum": [
"approximate"
"disabled",
"cached",
"live"
],
"type": "string"
},
"WebSearchToolConfig": {
"additionalProperties": false,
"properties": {
"allowed_domains": {
"items": {
"type": "string"
},
"type": [
"array",
"null"
]
},
"context_size": {
"anyOf": [
{
"$ref": "#/definitions/WebSearchContextSize"
},
{
"type": "null"
}
]
},
"location": {
"anyOf": [
{
"$ref": "#/definitions/WebSearchLocation"
},
{
"type": "null"
}
]
}
},
"type": "object"
}
},
"properties": {