4.6 · Challenge

Build and run the agent

In the previous lesson, you learned how to use create_memory_tools() and record_agent_trace() to record reasoning traces automatically, and how to query those traces in Neo4j to follow the full causal chain of an agent's decisions.

In this challenge, you will complete a Pydantic AI agent, run it against two prompts, and verify that the reasoning trace was written to your instance.