INNER CODE UNIT · Python
tools
panaversity/learn-agentic-ai · 01_ai_agents_first/06_basic_tools/main.py:57
tools=[multiply, sum], # 🛠️ Register tools here
)
# 🧪 5) Run the agent with a prompt (tool calling expected)
prompt = "what is 19 + 23 * 2?"
result = Runner.run_sync(agent, prompt)
# 📤 Print the final result from the agent
print("\n🤖 CALLING AGENT\n")
print(result.final_output)