mirror of
https://github.com/wolfpld/tracy.git
synced 2026-09-07 02:48:24 +00:00
167 lines
3.9 KiB
JSON
167 lines
3.9 KiB
JSON
[
|
|
{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "search_wikipedia",
|
|
"description": "Search the Wikipedia with given query. The `key` field in the response is the Wikipedia page name. Uses network.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"query": {
|
|
"type": "string",
|
|
"description": "The search terms in the language matching the second parameter."
|
|
},
|
|
"language": {
|
|
"type": "string",
|
|
"description": "Language code matching the search query. For example, `en` for English or `pl` for Polish."
|
|
}
|
|
},
|
|
"required": ["query", "language"]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "get_wikipedia",
|
|
"description": "Retrieve the Wikipedia article on given subject. Uses network.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"page": {
|
|
"type": "string",
|
|
"description": "The Wikipedia page name."
|
|
},
|
|
"language": {
|
|
"type": "string",
|
|
"description": "Language code."
|
|
}
|
|
},
|
|
"required": ["page", "language"]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "get_dictionary",
|
|
"description": "Retrieve description of a word from dictionary. Uses network.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"word": {
|
|
"type": "string",
|
|
"description": "Word to describe."
|
|
},
|
|
"language": {
|
|
"type": "string",
|
|
"description": "Language code."
|
|
}
|
|
},
|
|
"required": ["word", "language"]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "search_web",
|
|
"description": "Search the web with given query. Uses network.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"query": {
|
|
"type": "string",
|
|
"description": "Search query."
|
|
}
|
|
},
|
|
"required": ["query"]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "get_webpage",
|
|
"description": "Fetch contents of a web page at given URL. Uses network.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string",
|
|
"description": "Web page to download."
|
|
}
|
|
},
|
|
"required": ["url"]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "user_manual",
|
|
"description": "Search the Tracy Profiler user manual with given query.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"query": {
|
|
"type": "string",
|
|
"description": "Verbose search query in English language."
|
|
}
|
|
},
|
|
"required": ["query"]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "source_file",
|
|
"description": "Retrieve the user program source file contents around given line.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"file": {
|
|
"type": "string",
|
|
"description": "Path to the file."
|
|
},
|
|
"line": {
|
|
"type": "integer",
|
|
"description": "Target line number."
|
|
},
|
|
"context": {
|
|
"type": "integer",
|
|
"description": "How many lines to get before and after the target line."
|
|
}
|
|
},
|
|
"required": ["file", "line"]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "source_search",
|
|
"description": "Search user program source files for given keyword.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"query": {
|
|
"type": "string",
|
|
"description": "ECMAScript regex to search for."
|
|
},
|
|
"case_insensitive": {
|
|
"type": "boolean",
|
|
"description": "Case insensitive search."
|
|
},
|
|
"path": {
|
|
"type": "string",
|
|
"description": "File path ECMAScript regex."
|
|
}
|
|
},
|
|
"required": ["query"]
|
|
}
|
|
}
|
|
}
|
|
]
|