You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b6f2ada
Browse filesBrowse the repository at this point in the historyBrowse files
"description": "Multiple search queries to run concurrently in a single call. Use this to research several things at once instead of issuing one WebSearch per query.",
54
-
},
55
-
"numResults": map[string]interface{}{
56
-
"type": "integer",
57
-
"description": "Number of results to return (1-20)",
58
-
"minimum": 1,
59
-
"maximum": 20,
60
-
"default": 5,
61
-
},
62
-
"searchType": map[string]interface{}{
63
-
"type": "string",
64
-
"description": "Type of search to perform",
65
-
"enum": []string{"web", "news"},
66
-
"default": "web",
67
-
},
49
+
// Schema returns the typed input schema. Parameters() delegates to it so the
50
+
// two cannot diverge.
51
+
func (WebSearchTool) Schema() ToolSchema {
52
+
returnToolSchema{
53
+
Type: "object",
54
+
Properties: map[string]SchemaProperty{
55
+
"query": {Type: "string", Description: "Search query. Provide this OR queries (not both).", MaxLength: maxWebSearchQueryLength},
56
+
"queries": {Type: "array", Items: &SchemaProperty{Type: "string", MaxLength: maxWebSearchQueryLength}, MaxItems: maxWebSearchQueries, Description: "Multiple search queries to run concurrently in a single call. Use this to research several things at once instead of issuing one WebSearch per query."},
57
+
"numResults": {Type: "integer", Description: "Number of results to return (1-20)", Minimum: 1, Maximum: 20, Default: 5},
58
+
"searchType": {Type: "string", Description: "Type of search to perform", Enum: []interface{}{"web", "news"}, Default: "web"},
68
59
},
69
-
// Either query or queries must be supplied; validated in Execute since
70
-
// JSON Schema "required" cannot express an exclusive-or cleanly.
0 commit comments