30 lines
695 B
JSON
30 lines
695 B
JSON
[
|
|
{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "get_current_weather",
|
|
"description": "Get the current weather",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"location": {
|
|
"type": "string",
|
|
"description": "The city and state, e.g. San Francisco, CA"
|
|
},
|
|
"format": {
|
|
"type": "string",
|
|
"enum": [
|
|
"celsius",
|
|
"fahrenheit"
|
|
],
|
|
"description": "The temperature unit to use. Infer this from the users location."
|
|
}
|
|
},
|
|
"required": [
|
|
"location",
|
|
"format"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|