Skip to content

feat(to_a2a): add service_url support to to_a2a#5062

Draft
kaligautier wants to merge 1 commit intogoogle:mainfrom
kaligautier:feat/to-a2a-service-url
Draft

feat(to_a2a): add service_url support to to_a2a#5062
kaligautier wants to merge 1 commit intogoogle:mainfrom
kaligautier:feat/to-a2a-service-url

Conversation

@kaligautier
Copy link
Copy Markdown
Contributor

Summary

  • add an optional service_url parameter to to_a2a() and use it for the published agent card URL
  • preserve the existing host/port/protocol path as the fallback behavior and document precedence
  • cover the new API with unit tests and update the A2A sample documentation

Root cause

to_a2a() only accepted split host/port/protocol inputs even though the generated agent card ultimately needed a single service URL string, forcing callers to parse environment-provided URLs themselves.

Testing

  • .venv/bin/python -m pytest tests/unittests/a2a/utils/test_agent_to_a2a.py

Fixes #5060

@kaligautier kaligautier changed the title add service_url support to to_a2a feat(to_a2a): add service_url support to to_a2a Mar 30, 2026
@kaligautier kaligautier force-pushed the feat/to-a2a-service-url branch from 77f4969 to eedb1c0 Compare March 30, 2026 15:51
@kaligautier
Copy link
Copy Markdown
Contributor Author

@rohityan @xuanyang15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

to_a2a(): accept a service_url string instead of separate host/port/protocol params

1 participant