Unable to add many agents in a single A2A Server
Scenario where i need it
- I am in a scenario that, in a server i need to host many agents. Can i have a feature to add multiple agents in a single server and port with different end points.
- Also if possible if there is a way to dynamically feed agent details to create agent and run in same server, same port with different end points.
Solution i suggest
- We might need to update the server, where A2AServer is defined in common/server file.
To complete the setup, please make sure to follow these steps:
-
Initialize the A2A server:
server = A2AServer(
host=host,
port=port,
)
-
Register each agent:
server.register_agent(
endpoint="/agent-one",
agent_card=agent_one_agent_card,
task_manager=AgentTaskManager(agent=AgentOne()),
)
Code of Conduct