mirror of
https://github.com/outbackdingo/optimclaw.git
synced 2026-08-25 14:53:34 +00:00
* feat: adds context-llm tool support Introduces a new tool for the LLM Context endpoint of the Brave Search API: https://api-dashboard.search.brave.com/documentation/services/llm-context. * minor refactoring * Update registry/tools/llm-context.json Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Update tools-src/llm-context/llm-context-tool.capabilities.json Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Update tools-src/llm-context/src/lib.rs Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * chore: address feedback from review * address feedback * address feedback * fix: remove snippet-counting fn --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
54 lines
1.2 KiB
JSON
54 lines
1.2 KiB
JSON
{
|
|
"version": "0.1.0",
|
|
"wit_version": "0.3.0",
|
|
"capabilities": {
|
|
"http": {
|
|
"allowlist": [
|
|
{
|
|
"host": "api.search.brave.com",
|
|
"path_prefix": "/res/v1/llm/context",
|
|
"methods": [
|
|
"POST"
|
|
]
|
|
}
|
|
],
|
|
"credentials": {
|
|
"brave_api_key": {
|
|
"secret_name": "brave_api_key",
|
|
"location": {
|
|
"type": "header",
|
|
"name": "X-Subscription-Token"
|
|
},
|
|
"host_patterns": [
|
|
"api.search.brave.com"
|
|
]
|
|
}
|
|
},
|
|
"rate_limit": {
|
|
"requests_per_minute": 30,
|
|
"requests_per_hour": 500
|
|
}
|
|
},
|
|
"secrets": {
|
|
"allowed_names": [
|
|
"brave_api_key"
|
|
]
|
|
}
|
|
},
|
|
"auth": {
|
|
"secret_name": "brave_api_key",
|
|
"display_name": "Brave Search",
|
|
"instructions": "Get a free API key at brave.com/search/api/ (Free tier: 2,000 queries/month). Same key as Web Search.",
|
|
"setup_url": "https://brave.com/search/api/",
|
|
"env_var": "BRAVE_API_KEY"
|
|
},
|
|
"setup": {
|
|
"required_secrets": [
|
|
{
|
|
"name": "brave_api_key",
|
|
"prompt": "Brave Search API key (from brave.com/search/api)"
|
|
}
|
|
]
|
|
}
|
|
}
|