20 lines
1.1 KiB
JSON
20 lines
1.1 KiB
JSON
{
|
|
"request": {
|
|
"model": "claude-route",
|
|
"max_tokens": 256,
|
|
"system": [{"type":"text","text":"Use tools carefully."}],
|
|
"messages": [
|
|
{"role":"user","content":[{"type":"text","text":"Inspect this image."},{"type":"image","source":{"type":"base64","media_type":"image/png","data":"aW1hZ2U="}}]},
|
|
{"role":"assistant","content":[{"type":"text","text":"I will inspect it."},{"type":"tool_use","id":"toolu_1","name":"inspect","input":{"detail":"high"}}]},
|
|
{"role":"user","content":[{"type":"tool_result","tool_use_id":"toolu_1","content":"clear"}]}
|
|
],
|
|
"tools": [{"name":"inspect","description":"Inspect an image","input_schema":{"type":"object","properties":{"detail":{"type":"string"}},"required":["detail"]}}],
|
|
"tool_choice": {"type":"tool","name":"inspect"}
|
|
},
|
|
"provider_response": {
|
|
"id": "chatcmpl_fixture",
|
|
"model": "served-chat",
|
|
"choices": [{"message":{"role":"assistant","content":"Done.","tool_calls":[{"id":"call_2","type":"function","function":{"name":"report","arguments":"{\"ok\":true}"}}]},"finish_reason":"tool_calls"}],
|
|
"usage":{"prompt_tokens":31,"completion_tokens":7,"total_tokens":38}
|
|
}
|
|
}
|