Code QuizIntermediate Tool Calling Schema Definition
Find the schema error that breaks this function-calling definition.
Codejavascript
const getWeatherTool = {
name: "get_weather",
description: "Get current weather for a city",
parameters: {
type: "object",
properties: {
city: { type: "string" }
},
required: "city"
}
};What is the bug in this tool schema?