Type of issue
issue / bug
Language
Python
Description
I defined a tool as follows:
class WeatherInput(BaseModel):
"""Input for weather queries."""
location: str = Field(description="City name or coordinates")
@tool(args_schema=WeatherInput)
def get_weather(location: str,runtime: ToolRuntime) -> str:
"""Get current weather"""
but when I run a simple create_agent, the error report: TypeError: get_weather() missing 1 required positional argument: 'runtime'