Swarm-readme-19.js
· 516 B · JavaScript
Неформатований
{
"type": "function",
"function": {
"name": "greet",
"description": "Greets the user. Make sure to get their name and age before calling.\n\nArgs:\n name: Name of the user.\n age: Age of the user.\n location: Best place on earth.",
"parameters": {
"type": "object",
"properties": {
"name": {"type": "string"},
"age": {"type": "integer"},
"location": {"type": "string"}
},
"required": ["name", "age"]
}
}
}
1 | { |
2 | "type": "function", |
3 | "function": { |
4 | "name": "greet", |
5 | "description": "Greets the user. Make sure to get their name and age before calling.\n\nArgs:\n name: Name of the user.\n age: Age of the user.\n location: Best place on earth.", |
6 | "parameters": { |
7 | "type": "object", |
8 | "properties": { |
9 | "name": {"type": "string"}, |
10 | "age": {"type": "integer"}, |
11 | "location": {"type": "string"} |
12 | }, |
13 | "required": ["name", "age"] |
14 | } |
15 | } |
16 | } |