Registering pre-built Autogen-AgentChat agents in Autogen-Core v0.4 #4909
ericlabouve-sn
started this conversation in
General
Replies: 1 comment 1 reply
-
It's not possible to register an agentchat agent with a runtime directly. You can however create a wrapper that takes an agent chat agent as part of its constructor. If you are interested you can take a look at the ChatAgentContainer class in AgentChat framework code. This is how we currently run the agents on runtime in AgentChat. We may expose ChatAgentContainer or provide a similar convenience class in the future to make it easy. However, different applications may expect different message protocols and thus the container will be different. For now, write your own container RoutedAgent class that takes an AgentChat agent is the way to go. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi team.
I am working with
autogen-core
v0.4 and I find myself repeating agent implementations that already exist inautogen-agentchat
v0.4. According toautogen-core
documentation, the correct way to register an agent with a runtime (such asSingleThreadedAgentRuntime
) is to call theruntime()
class method of theRoutedAgent
class. From what I can tell, all agents packaged withautogen-agentchat
v0.4 do not extendRoutedAgent
and therefor do not have access to thisregister()
class method. Is it currently possible or will future releases allow agents defined inautogen-agentchat
to register with runtimes fromautogen-core
? If currently possible, would you please provide an example?Thank you!
Beta Was this translation helpful? Give feedback.
All reactions