Build a testable Python agent loop without an API key
Download a complete Python 3.12 example, run it locally, verify three failure boundaries, and see where a real model belongs.
Read the guide →result = run_agent(
Task("My API request times out"),
max_steps=3,
)
for action in result.trace:
print(action)
print(result.answer)