.NET: Dynamically generated agents - not possible? #2029
Unanswered
toresenneseth
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
All the examples I've seen so far assumes that you know which agents are available at startup.
Unfortunately, I don't have that luxury :)
In my company, we need to dynamically generate agents based on user configuration. They should be exposed under a resource such as
https://domain.com/a2a/tenants/{tenantId}/agents/{agentId}(to be clear, this is a route pattern, so tenantId and agentId are only known at runtime).When the agent resource is requested, I imagine I need to
This does not seem possible at the moment, without copying a lot of internal code from the A2A and agent-framework library.
All the all.MapA2A(...) APIs expects an agent or a TaskManager, and I don't have sufficient information to do anything until I have the route parameters that tells which agent to run.
I've tried to use the TaskManager, which makes it possible to resolve the AgentCard in OnAgentCardQuery, but OnMessageReceived does not provide any way to get the same type of information.
Am I going about this wrong? How can I dynamically execute agents that are not known at startup?
-Thanks
Beta Was this translation helpful? Give feedback.
All reactions