11.05

Choosing an agent framework

skillmaxingPython with AIChoosing an agent framework
Visual lesson

Choosing an agent framework

Included with Pro · 4:15
Lessons · 1,050 words

You have now built Relay's support agent three times: as a loop you wrote by hand in module eight, with the OpenAI Agents SDK in module ten, and with LangChain and LangGraph in this module. The tools were the same three functions each time. What changed was who owned the loop, and how much of its shape you were allowed to draw.

Your tools, three runtimes
Figure 1Your tools, three runtimesThe same three functions fed three runtimes; only who owned the loop changed.

That is the whole decision. An agent framework is a way of running the model-tool-model loop, plus some services around it: memory, streaming, tracing, multi-agent wiring. The frameworks differ in how much of the loop they let you see and change, and in which extras come in the box. MCP, the subject of the next module, is not a fourth framework; it is a way to make the tools independent of whichever one you pick.

Pro

Continue reading

Pro unlocks every video lesson, the full notes and runnable code across the Python with AI course, from the language itself to agents, MCP, Langfuse and deployment.

Unlock full access to
Python with AIAI researchComplete system design
30% off with LAUNCH30ends in 7h 40m
Buy now
View all plans ·Already Pro? Sign in
124 online