Part 16 · Module 3: Tool DesignModule 3: Tool Design1 min read·13 Oct 2026What you need firstModule 1: the returns_desk/ package, structured output with Pydantic, and tests with pytest.Module 2: tool calling in brief, and the agent's rules and output contract.Python exceptions, classes and closures.