AI-Studio/app/MindWork AI Studio/wwwroot/tool_definitions/web_search.json

130 lines
3.4 KiB
JSON

{
"schemaVersion": 1,
"id": "web_search",
"implementationKey": "web_search",
"visibleIn": {
"chat": true,
"assistants": true
},
"settingsSchema": {
"type": "object",
"properties": {
"baseUrl": {
"type": "string",
"secret": false
},
"defaultLanguage": {
"type": "string",
"secret": false
},
"defaultSafeSearch": {
"type": "string",
"enum": [
"0",
"1",
"2"
],
"secret": false
},
"defaultCategories": {
"type": "string",
"secret": false
},
"defaultEngines": {
"type": "string",
"secret": false
},
"maxResults": {
"type": "string",
"secret": false
},
"timeoutSeconds": {
"type": "string",
"secret": false
}
},
"required": [
"baseUrl"
]
},
"systemPromptInstructions": "Use the `web_search` tool to discover URLs of websites to answer the user's question. Prefer categories for broad search intent and use a date, if appropriate. If you are not sure what you should search for, ask the user for clarification. `web_search` enables you to gather information that is after your knowledge cutoff date. Use the search to gather interesting websites, not for information gathering. Information for answering questions should be gathered using the `read_web_page`. Use `web_search` only once or twice to gather candidate URLs.",
"function": {
"name": "web_search",
"descriptionForLLM": "Search the web and return candidate website URLs to answer user questions for use with the `read_web_page` tool.",
"strict": true,
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The search query."
},
"categories": {
"type": [
"array",
"null"
],
"description": "Optional list of categories to use for the search.",
"items": {
"type": "string"
}
},
"engines": {
"type": [
"array",
"null"
],
"description": "Optional list of specific search engines to use when the user requests them explicitly.",
"items": {
"type": "string"
}
},
"language": {
"type": [
"string",
"null"
],
"description": "Optional language code for the search."
},
"time_range": {
"type": [
"string",
"null"
],
"description": "Optional time range filter for search engines that support it.",
"enum": [
null,
"day",
"month",
"year"
]
},
"page": {
"type": [
"integer",
"null"
],
"description": "Optional search result page number starting at 1."
},
"limit": {
"type": [
"integer",
"null"
],
"description": "Optional maximum number of results to return to the model after local truncation."
}
},
"required": [
"query",
"categories",
"engines",
"language",
"time_range",
"page",
"limit"
],
"additionalProperties": false
}
}
}