mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
42da3cb6a4
* fix serialization in chat completions on tools * nit
53 lines
1.3 KiB
JSON
53 lines
1.3 KiB
JSON
{
|
|
"model": "gpt-4o-mini",
|
|
"messages": [
|
|
{
|
|
"role": "user",
|
|
"content": "What's the weather like in San Francisco?"
|
|
}
|
|
],
|
|
"max_completion_tokens": 256,
|
|
"temperature": 0.7,
|
|
"top_p": 1,
|
|
"tools": [
|
|
{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "get_weather",
|
|
"description": "Get the current weather in a given location",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"location": {
|
|
"type": "string",
|
|
"description": "The city and state, e.g. San Francisco, CA"
|
|
},
|
|
"unit": {
|
|
"type": "string",
|
|
"enum": [ "celsius", "fahrenheit" ],
|
|
"description": "Temperature unit"
|
|
}
|
|
},
|
|
"required": [ "location" ]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "get_time",
|
|
"description": "Get the current time in a given timezone",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"timezone": {
|
|
"type": "string",
|
|
"description": "The IANA timezone, e.g. America/Los_Angeles"
|
|
}
|
|
},
|
|
"required": [ "timezone" ]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
} |