Code examples for the agentic AI patterns discussed in the excellent article Building Effective Agents by Erik Schluntz and Barry Zhang of Anthropic,

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-12-23 00:00:16

Code examples for the agentic AI patterns discussed in the excellent article Building Effective Agents by Erik Schluntz and Barry Zhang of Anthropic, inspired, ported and adapted from the code samples by the authors.

The examples rely on Pydantic AI, an agentic AI orchestration library that is particularly well-suited for implementing these patterns with clarity and precision.

These examples complement the original code accompanying the article and hopefully serve a dual purpose, demonstrating both the foundational agentic AI patterns discussed in the article and the use of Pydantic AI.

You can also omit the AI_MODEL variable, which will result in a random model from all the models you have API keys for being chosen (you can use that to play with different models and compare).

Leave a Comment