Haystack/backend/tools.json

59 lines
1.6 KiB
JSON

[
{
"type": "function",
"function": {
"name": "createLocation",
"description": "Creates a location",
"parameters": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"coordinates": {
"type": "string"
},
"address": {
"type": "string"
}
},
"required": ["name"]
}
}
},
{
"type": "function",
"function": {
"name": "listLocations",
"description": "Lists the locations available",
"parameters": {
"type": "object",
"properties": {}
}
}
},
{
"type": "function",
"function": {
"name": "createEvent",
"description": "Creates a new event",
"parameters": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"datetime": {
"type": "string"
},
"locationId": {
"type": "string",
"description": "The ID of the location, available by `listLocations`"
}
},
"required": ["name"]
}
}
}
]