Add support for full web search config

This commit is contained in:
Rohan Mehta
2026-03-05 22:30:52 -05:00
parent 7a5aff4972
commit b2263a7db6
20 changed files with 819 additions and 2 deletions

View File

@@ -352,6 +352,16 @@
"type": "null"
}
]
},
"web_search_config": {
"anyOf": [
{
"$ref": "#/definitions/WebSearchConfig"
},
{
"type": "null"
}
]
}
},
"type": "object"
@@ -637,6 +647,16 @@
"type": "null"
}
]
},
"web_search_config": {
"anyOf": [
{
"$ref": "#/definitions/WebSearchConfig"
},
{
"type": "null"
}
]
}
},
"type": "object"
@@ -738,6 +758,65 @@
],
"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",
"medium",
"high"
],
"type": "string"
},
"WebSearchFilters": {
"additionalProperties": false,
"properties": {
"allowed_domains": {
"items": {
"type": "string"
},
"type": [
"array",
"null"
]
}
},
"type": "object"
},
"WebSearchMode": {
"enum": [
"disabled",
@@ -745,6 +824,50 @@
"live"
],
"type": "string"
},
"WebSearchUserLocation": {
"additionalProperties": false,
"properties": {
"city": {
"type": [
"string",
"null"
]
},
"country": {
"type": [
"string",
"null"
]
},
"region": {
"type": [
"string",
"null"
]
},
"timezone": {
"type": [
"string",
"null"
]
},
"type": {
"allOf": [
{
"$ref": "#/definitions/WebSearchUserLocationType"
}
],
"default": "approximate"
}
},
"type": "object"
},
"WebSearchUserLocationType": {
"enum": [
"approximate"
],
"type": "string"
}
},
"properties": {