Creating general Orchestrator Pydantic AI Agent

I need to know how to create an orchestrator agent using Pydantic AI framework that can automatically call the agent from a list of registered agent.

1 Like

Hey @mudassarm30, I would need to know a bit more about your use case to say for certain this would be the best way to go about it, but what I would recommend doing is creating each “sub-agent” as a tool for the main orchestrator agent. That way, the docstring for the sub-agent tool function will tell the orchestrator when to call each agent and they can communicate through the tool inputs and responses.

2 Likes

I did research and reached to the same point as you said!

1 Like

I have another question, how do we set temperature in Pydantic AI Agent so that I can get a deterministic answer ? I could not find any argument anywhere.

Sounds great! I’m glad! :slight_smile:

I’d look here!