Skip to content

[Feat]: ephemeral port support #4

@codefromthecrypt

Description

@codefromthecrypt

Is your feature request related to a problem? Please describe.

Right now, we need to supply a URL in the agent card, which means you already know its host and port. This is fine for static ports, but especially in small demos or e2e tests is less elegant.

Describe the solution you'd like

it would be nice to use port=0 and resolve AgentCard.url based on the bound port. This could be automatic, for example, to backfill it when absent with the uvicorn address

Describe alternatives you've considered

search for an open port and use that, or patch A2AStarletteApplication or JSONRPCHandler

Additional context

No response

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions