Spaces:
Sleeping
Sleeping
image_generation_tool and calculator set as tools for the agent
Browse files32 unmodified lines33343536373816 unmodified lines5556575859606132 unmodified linesexcept Exception as e:return f"Error fetching time for timezone '{timezone}': {str(e)}"final_answer = FinalAnswerTool()16 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,32 unmodified lines3334353637383940414243444516 unmodified lines6263646566676832 unmodified linesexcept Exception as e:return f"Error fetching time for timezone '{timezone}': {str(e)}"@tooldef calculator(a: int, b: int) -> int:"""Multiply two integers."""return a * bprint(calculator.to_string())final_answer = FinalAnswerTool()16 unmodified linesagent = CodeAgent(model=model,tools=[final_answer], image_generation_tool, calculator, ## add your tools here (don't remove final answer)max_steps=6,verbosity_level=1,grammar=None,
app.py+8-1