@function_tool decorator.
agent.run(...) returns a RunResult, and printing it prints the answer:
result.status, result.usage, and result.tool_calls show how the agent got there. See Monitoring agents.
In the next section, we will learn about how to build and use MCP Servers with Agentor.