90 lines
1.9 KiB
JSON
90 lines
1.9 KiB
JSON
{
|
|
"version": 1,
|
|
"generate_request": {
|
|
"ai_role": "client",
|
|
"messages": [
|
|
{
|
|
"role": "system",
|
|
"content": "Keep replies concise.",
|
|
"cache": true
|
|
},
|
|
{
|
|
"role": "user",
|
|
"content": "hello",
|
|
"cache": false
|
|
}
|
|
],
|
|
"model": "gateway-default",
|
|
"max_tokens": 256,
|
|
"temperature": 0.4,
|
|
"structured_schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"reply": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"reply"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"session_id": "contract-session-1",
|
|
"metadata": {
|
|
"trace_id": "trace-001",
|
|
"route": "golden"
|
|
}
|
|
},
|
|
"generate_response": {
|
|
"text": "{\"reply\":\"hello\"}",
|
|
"model": "claude-opus-4-8",
|
|
"provider": "claude_cli",
|
|
"tokens_in": 11,
|
|
"tokens_out": 7,
|
|
"cost_usd": 0.0123,
|
|
"inference_geo": "us",
|
|
"structured": {
|
|
"reply": "hello"
|
|
}
|
|
},
|
|
"stream_frames": [
|
|
"event: token\ndata: {\"text\":\"hel\"}\n\n",
|
|
"event: token\ndata: {\"text\":\"lo\"}\n\n",
|
|
"event: done\ndata: {\"provider\":\"claude_cli\",\"model\":\"claude-opus-4-8\",\"tokens_in\":11,\"tokens_out\":7,\"cost_usd\":0.0123,\"turns\":2}\n\n",
|
|
"event: error\ndata: {\"detail\":\"engine failed\"}\n\n"
|
|
],
|
|
"stream_packets": [
|
|
{
|
|
"event": "token",
|
|
"payload": {
|
|
"text": "hel"
|
|
}
|
|
},
|
|
{
|
|
"event": "token",
|
|
"payload": {
|
|
"text": "lo"
|
|
}
|
|
},
|
|
{
|
|
"event": "done",
|
|
"payload": {
|
|
"provider": "claude_cli",
|
|
"model": "claude-opus-4-8",
|
|
"tokens_in": 11,
|
|
"tokens_out": 7,
|
|
"cost_usd": 0.0123,
|
|
"turns": 2
|
|
}
|
|
},
|
|
{
|
|
"event": "error",
|
|
"payload": {
|
|
"detail": "engine failed"
|
|
}
|
|
}
|
|
],
|
|
"compatibility_lines": [
|
|
"data: [DONE]"
|
|
]
|
|
}
|