-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Description
On Nov 4th, Anthropic dropped a new paradigm... that I think we've all thought of as a valid approach or even tried at one point.... taking advantage of code for tasks/actions would be way more efficient than tool calling, but the problem is properly defining out the "library" of functions the agent could code with to perform the task, plus ... how to partition the input and output, when to allow the agent to assess the output of some function before choosing some next set of actions as code, etc.
Anthropic Blog: Code execution with MCP: building more efficient AI Agents
This solves it. I think the hybrid approach anthropic just introduced should be implemented into pydantic-ai right away. Their site includes examples and some more information about the exact standard, and this is fairly new.
It also reminds me of not just Skills, but early projects with minecraft agents where they coded their own skill sets and used that library to build skill sets that would let them beat the game. Code execution with MCP is a natural progression of all of this, and the question until now has been just how it fits into frameworks like MCP.
The frustrating part is that there's not really much information besides this blog post and an article talking about some team who has tried this, so I'm not sure how the exact implementation needs to be. I am willing to help with anything on this, just lmk
References
Anthropic Blog: Code execution with MCP: building more efficient AI Agents