mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
Collect debugging log
This commit is contained in:
parent
f13947732c
commit
8871d3f751
4 changed files with 92 additions and 14 deletions
|
|
@ -10,22 +10,66 @@ Content-Type: application/json
|
|||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "how is the weather in seattle for next 10 days"
|
||||
"content": "what is the weather forcast for seattle in the next 10 days?"
|
||||
}
|
||||
],
|
||||
"tools": [
|
||||
{
|
||||
"id": "weather-112",
|
||||
"tool_type": "function",
|
||||
"function": {
|
||||
"name": "weather_forecast",
|
||||
"arguments": {"city": "str", "days": "int"}
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "weather_forecast",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"city": {
|
||||
"type": "str"
|
||||
},
|
||||
"days": {
|
||||
"type": "int"
|
||||
}
|
||||
},
|
||||
"required": ["city", "days"]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
|
||||
### talk to function calling endpoint
|
||||
POST {{model_server_endpoint}}/function_calling HTTP/1.1
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"messages": [
|
||||
{
|
||||
"role": "user",
|
||||
"content": "book a hotel for me"
|
||||
}
|
||||
],
|
||||
"tools": [
|
||||
{
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "weather_forecast",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"city": {
|
||||
"type": "str"
|
||||
},
|
||||
"days": {
|
||||
"type": "int"
|
||||
}
|
||||
},
|
||||
"required": ["city", "days"]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
### talk to Arch-Intent directly for completion
|
||||
POST https://api.fc.archgw.com/v1/chat/completions HTTP/1.1
|
||||
Content-Type: application/json
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue