Spaces:
Sleeping
Sleeping
Update app.py
Browse files27 unmodified lines2829303132338 unmodified lines424344454647484933 unmodified lines8384858687888927 unmodified lineselse:return "Unknown operation"@tooldef get_weather(place: str, time: int) -> str:"""8 unmodified lines# Using an f-string is the best way to combine variables and text in Pythonreturn f"The weather condition for {place} at {time}:00 is sunny with a light breeze."@tool@tool33 unmodified linesagent = CodeAgent(model=model,tools=[final_answer], ## add your tools here (don't remove final answer)max_steps=6,verbosity_level=1,grammar=None,27 unmodified lines28293031323334358 unmodified lines4445464748495051525333 unmodified lines8788899091929327 unmodified lineselse:return "Unknown operation"final_math = FinalMathTool()@tooldef get_weather(place: str, time: int) -> str:"""8 unmodified lines# Using an f-string is the best way to combine variables and text in Pythonreturn f"The weather condition for {place} at {time}:00 is sunny with a light breeze."final_weather = FinalWeatherTool()@tool33 unmodified linesagent = CodeAgent(model=model,tools=[final_answer],[final_weather],[final_math] ## add your tools here (don't remove final answer)max_steps=6,verbosity_level=1,grammar=None,
app.py+6-2