Repository navigation
feat(a2a): well-known agent-card discovery + LangGraph Platform mode #28860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mateo-berri
merged 27 commits into
litellm_internal_staging
from
litellm_a2a_well_known_discovery
May 30, 2026
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
79ffe24
feat(a2a): well-known agent-card discovery + LangGraph Platform mode
Sameerlite 20129d4
fix(a2a): preserve agent url, fix streaming chunk envelope, and prote…
cursoragent afc8b10
fix(a2a): fix legacy streaming chunk, agent card test, and metadata m…
cursoragent 78591b2
fix(a2a): remove dead duplicate transformation dir; drop SSRF-prone h…
cursoragent 1728e9f
fix(a2a): revert accidental html→index.html rename from afc8b10f
Sameerlite 78cc67c
fix(a2a): address PR review comments
Sameerlite 7eb3f4d
fix: restore Next.js metadata directories to match upstream main
Sameerlite ac6bc79
fix(a2a): drop dead headers option from discoverAgentCardCall
mateo-berri 42b4449
fix(a2a): skip merge for non-A2A agents and align pydantic-ai result …
mateo-berri a65357f
Fix three bugs in A2A discovery flow
cursoragent a3f958d
fix(a2a/ui): include savedAgentCard in handleDiscover deps
cursoragent a0944e1
fix(a2a): align pydantic-ai test + docstring with direct-Message resu…
mateo-berri 06384db
fix(a2a): strip additionalInterfaces and let configured metadata win …
mateo-berri c5cf17a
fix(agents): merge agent card even when agent_card_params is an empty…
cursoragent 2cb4a8c
refactor(a2a): drop dead openai_chunk_to_a2a_chunk helper
mateo-berri a294fbe
fix(a2a): scope a2a lazy-feature so it doesn't subsume /v1/a2a/discover
mateo-berri c1eb1eb
style: black-format litellm/a2a_protocol/litellm_completion_bridge/tr…
mateo-berri 59e36bc
fix: address PR bugfix review for a2a discovery + metadata forwarding
cursoragent da4d9ce
fix(a2a): return 404 from get_agent_card when agent has no card
mateo-berri 4e3cdda
fix(agents): apply discovery overlay uniformly on create and dedupe A…
cursoragent 824a786
ci(proxy-endpoints): wire tests/test_litellm/proxy/a2a into the shard
mateo-berri 84e778e
fix(ui): overlay discovered name/description in create flow for dynam…
cursoragent 8145ece
fix(a2a): default merged agent card version, null-guard runtime URL l…
mateo-berri 1a9bce3
fix(ui): extract overlayDiscoveredCardParams + debounce parent-driven…
mateo-berri 65484a8
fix(a2a): preserve discovery name edit, default discovery headers, sy…
cursoragent 70fe8e5
fix(a2a): scrub upstream url from /public/agent_hub cards
mateo-berri 27c5098
fix(a2a): include suffix-matched routes in lazy warm openapi fragment
mateo-berri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| """ | ||
| A2A registration helpers for the LiteLLM proxy. | ||
|
|
||
| - ``discovery``: fetches the upstream agent's well-known card so the UI can | ||
| display its skills/capabilities for the user to pick from. | ||
| - ``agent_card``: pure merge logic that builds the LiteLLM-fronted agent card | ||
| from the upstream card + the values the user set in the UI. | ||
| - ``endpoints``: FastAPI routes that wire the above into the proxy. | ||
| """ | ||
|
|
||
| from litellm.proxy.a2a.agent_card import ( | ||
| LITELLM_A2A_PROTOCOL_VERSION, | ||
| LITELLM_SECURITY_SCHEMES, | ||
| LITELLM_SECURITY_REQUIREMENTS, | ||
| merge_agent_card, | ||
| ) | ||
| from litellm.proxy.a2a.discovery import ( | ||
| AGENT_CARD_WELL_KNOWN_PATHS, | ||
| fetch_well_known_card, | ||
| ) | ||
|
|
||
| __all__ = [ | ||
| "AGENT_CARD_WELL_KNOWN_PATHS", | ||
| "LITELLM_A2A_PROTOCOL_VERSION", | ||
| "LITELLM_SECURITY_REQUIREMENTS", | ||
| "LITELLM_SECURITY_SCHEMES", | ||
| "fetch_well_known_card", | ||
| "merge_agent_card", | ||
| ] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.