mirror of
https://github.com/outbackdingo/optimclaw.git
synced 2026-08-25 14:53:34 +00:00
* fix: add tool_info schema discovery for WASM tools * refactor: simplify WASM schema and hint state * refactor: store tool_info registry reference as Weak
51 lines
1.2 KiB
JSON
51 lines
1.2 KiB
JSON
{
|
|
"model_name": "test-tool-info-discovery",
|
|
"expects": {
|
|
"tools_used": ["tool_info"],
|
|
"all_tools_succeeded": true,
|
|
"min_responses": 1,
|
|
"tool_results_contain": {
|
|
"tool_info": "echo"
|
|
}
|
|
},
|
|
"steps": [
|
|
{
|
|
"request_hint": { "last_user_message_contains": "schema" },
|
|
"response": {
|
|
"type": "tool_calls",
|
|
"tool_calls": [
|
|
{
|
|
"id": "call_tool_info_echo",
|
|
"name": "tool_info",
|
|
"arguments": { "name": "echo" }
|
|
}
|
|
],
|
|
"input_tokens": 100,
|
|
"output_tokens": 20
|
|
}
|
|
},
|
|
{
|
|
"response": {
|
|
"type": "tool_calls",
|
|
"tool_calls": [
|
|
{
|
|
"id": "call_tool_info_time",
|
|
"name": "tool_info",
|
|
"arguments": { "name": "time", "include_schema": true }
|
|
}
|
|
],
|
|
"input_tokens": 200,
|
|
"output_tokens": 20
|
|
}
|
|
},
|
|
{
|
|
"response": {
|
|
"type": "text",
|
|
"content": "I found the info for both tools. The echo tool has a 'message' parameter. The time tool accepts an 'operation' parameter with options like 'now', 'parse', and 'diff'.",
|
|
"input_tokens": 400,
|
|
"output_tokens": 40
|
|
}
|
|
}
|
|
]
|
|
}
|