-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathopenai_tools.json
More file actions
58 lines (58 loc) · 1.94 KB
/
Copy pathopenai_tools.json
File metadata and controls
58 lines (58 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"tools": [
{
"type": "function",
"function": {
"name": "web_search",
"description": "Search the live web via local WebSearchFree (no API key). Returns titles, URLs, snippets, scores, extractive answer, and engine status.",
"parameters": {
"type": "object",
"required": ["query"],
"properties": {
"query": { "type": "string", "description": "Search query" },
"max_results": { "type": "integer", "default": 5, "minimum": 1, "maximum": 20 },
"include_raw_content": {
"type": "boolean",
"default": false,
"description": "If true, also fetch and attach page text for each result"
},
"search_depth": {
"type": "string",
"enum": ["basic", "advanced"],
"default": "basic"
},
"topic": { "type": "string", "enum": ["general", "news"], "default": "general" },
"include_domains": { "type": "array", "items": { "type": "string" } },
"exclude_domains": { "type": "array", "items": { "type": "string" } },
"include_answer": { "type": "boolean", "default": true }
}
}
}
},
{
"type": "function",
"function": {
"name": "web_extract",
"description": "Extract main text from one or more URLs via local WebSearchFree.",
"parameters": {
"type": "object",
"required": ["urls"],
"properties": {
"urls": {
"type": "array",
"items": { "type": "string" },
"minItems": 1,
"maxItems": 10,
"description": "Page URLs to extract"
}
}
}
}
}
],
"http": {
"base_url": "http://127.0.0.1:8080",
"web_search": { "method": "POST", "path": "/search" },
"web_extract": { "method": "POST", "path": "/extract" }
}
}