Skip to content

[Feat]: Can we have multiple agents in a single A2A Server with different endpoints #371

@jebinj22

Description

@jebinj22

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:

  1. Initialize the A2A server:

    server = A2AServer(
        host=host,
        port=port,
    )
  2. Register each agent:

    server.register_agent(  
        endpoint="/agent-one",
        agent_card=agent_one_agent_card,
        task_manager=AgentTaskManager(agent=AgentOne()),
    )

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions