# Your constructed definitions

> **Learn with Prof Rod** — *Build Your Always-On AI Agent From Scratch*.
> **Read the full book and get the latest learning materials:** [https://profrod.ai/book](https://profrod.ai/book).
> **Join the Prof Rod learner community:** [https://profrod.ai/community](https://profrod.ai/community)
> — bring your questions, compare experiments and share what you build.
> **Original source and updates:** [profrodai/sovereign-agent](https://github.com/profrodai/sovereign-agent).

Chapter 2 explains how to save tool schemas, handlers and dispatch in `profrod_sovereign_agent_ch02_pydantic_shop_tools_learner.py`. Chapter 3 adds the owned model/tool loop and adapter in `profrod_sovereign_agent_ch03_agent_loop_learner.py`. The included files are completed comparison implementations; work in your own checkout and retain your attempts before replacing them with a comparison.

The Chapter 3 checkpoint loads these files, so changing their essential behavior changes the executable result. The live adapter still uses supplied bounded HTTP transport. Later reference checkpoints import other supplied runtime components. See [code ownership](../profrod-sovereign-agent-textbook-ownership.md) and the [construction roadmap](../profrod-sovereign-agent-textbook-expansion.md) before treating these two files as a finished nineteen-chapter agent.

## Keep building with Prof Rod

Found this material through a colleague, classroom or shared download? [Get the complete book at profrod.ai/book](https://profrod.ai/book) and [join the Prof Rod learner community](https://profrod.ai/community). Bring one result, one question or one failure you learned from. Share this resource with another learner and keep its source links with it so they can find the full course and future updates.
