iop/apps/edge/internal/openai/testdata/anthropic/chat_bridge_cases.json
toki f2306f4dc8 feat(protocol-profile): 멀티 프로토콜 프로필을 추가한다
OpenAI 호환 및 Anthropic Messages 경로의 프로토콜 프로필, 라우팅 계약, 테스트와 실행 증거를 함께 반영한다.
2026-08-01 10:33:10 +09:00

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}
}
}