config/tools-list.ts (22 lines of code) (raw):

// List of tools available to the assistant // No need to include the top-level wrapper object as it is added in lib/tools/tools.ts // More information on function calling: https://platform.openai.com/docs/guides/function-calling export const toolsList = [ { name: "get_weather", description: "Get the weather for a given location", parameters: { location: { type: "string", description: "Location to get weather for", }, unit: { type: "string", description: "Unit to get weather in", enum: ["celsius", "fahrenheit"], }, }, }, { name: "get_joke", description: "Get a programming joke", parameters: {}, }, ];