Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
const tools = [ { type: "function", definition: { schema: { name: "get_weather", description: "Get the current weather for a location", parameters: { type: "object", properties: { location: { type: "string", description: "City name, e.g. San Francisco", }, unit: { type: "string", enum: ["celsius", "fahrenheit"], description: "Temperature unit", }, }, required: ["location"], }, }, }, handler: async (args) => { // Your function logic here return { temperature: 72, condition: "sunny" }; }, }, ];
"function"
Show Properties
gateway.getToolResponses()
Was this page helpful?