62 lines
1.0 KiB
JSON
62 lines
1.0 KiB
JSON
|
|
{
|
||
|
|
"model": "upstream-model",
|
||
|
|
"system": [
|
||
|
|
{
|
||
|
|
"type": "text",
|
||
|
|
"text": "You are a helpful assistant."
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"messages": [
|
||
|
|
{
|
||
|
|
"role": "user",
|
||
|
|
"content": []
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"role": "assistant",
|
||
|
|
"content": [
|
||
|
|
{
|
||
|
|
"type": "text",
|
||
|
|
"text": "..."
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "tool_use",
|
||
|
|
"id": "call_1",
|
||
|
|
"name": "get_weather",
|
||
|
|
"input": {
|
||
|
|
"city": "Paris"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"role": "user",
|
||
|
|
"content": [
|
||
|
|
{
|
||
|
|
"type": "tool_result",
|
||
|
|
"content": "{\"result\":\"15 degrees\"}",
|
||
|
|
"tool_use_id": "call_0"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"max_tokens": 1024,
|
||
|
|
"temperature": 0.7,
|
||
|
|
"tools": [
|
||
|
|
{
|
||
|
|
"name": "get_weather",
|
||
|
|
"description": "Get weather by city",
|
||
|
|
"input_schema": {
|
||
|
|
"properties": {
|
||
|
|
"city": {
|
||
|
|
"type": "string"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"required": [
|
||
|
|
"city"
|
||
|
|
],
|
||
|
|
"type": "object"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|