Skip to content

add service_url support to to_a2a#5061

Closed
kaligautier wants to merge 1 commit intogoogle:mainfrom
kaligautier:feat/agent-card-support-url-only
Closed

add service_url support to to_a2a#5061
kaligautier wants to merge 1 commit intogoogle:mainfrom
kaligautier:feat/agent-card-support-url-only

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 [codex] add service_url support to to_a2a add service_url support to to_a2a Mar 30, 2026
@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 changed the title feat(to_a2a): add service_url support to to_a2a add service_url support to to_a2a Mar 30, 2026
@kaligautier
Copy link
Copy Markdown
Contributor Author

Superseded by #5062.

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