litellm/tests/unit/a2a_protocol
shrey kharbanda ea01b4eda4 fix(a2a): route typed A2A agents through their provider in chat completions
Chat completions for a registered agent always used the generic A2A request, so agents registered with a typed A2A provider such as pydantic_ai_agents failed: fasta2a servers reject the request and answer with a task the generic client never polls. Inside the a2a provider's completion, an agent whose type names an A2A provider config now goes through that provider's own client, and its reply is turned into the chat response by the same code the generic path uses. Because this runs inside the normal completion wrapper, success and failure logging, error mapping, usage, streaming and the Responses and Messages routes behave like any other model. The pydantic provider also reads an agent that answers with a plain Message and keeps an agent's JSON-RPC error instead of returning an empty answer.
2026-11-18 01:21:50 -08:00
..
litellm_completion_bridge feat(agents): support Databricks Agent Platform agents in the agent gateway (#45681) 2026-10-15 12:42:06 -07:00
providers fix(a2a): route typed A2A agents through their provider in chat completions 2026-11-18 01:21:50 -08:00
__init__.py test: add __init__.py to migrated tests/unit packages 2026-09-20 11:53:49 +00:00
test_a2a_exception_mapping_utils.py fix(a2a): add per-agent a2a_protocol_version override for langgraph-api 0.15 cards (#44463) 2026-10-13 09:04:36 -04:00
test_a2a_streaming_iterator.py perf(token_counter): memoize token counts of long texts per tokenizer (#51904) 2026-11-16 19:21:55 +00:00
test_card_resolver.py refactor(typing): clear about 1,100 basedpyright Any errors across 303 files (#49986) 2026-11-06 13:31:15 -08:00
test_completion_bridge_streaming.py fix(a2a): add per-agent a2a_protocol_version override for langgraph-api 0.15 cards (#44463) 2026-10-13 09:04:36 -04:00
test_cost_calculator.py test(unit): wait on the work itself instead of fixed sleeps (#46261) 2026-10-13 12:41:06 -07:00
test_main.py perf(token_counter): memoize token counts of long texts per tokenizer (#51904) 2026-11-16 19:21:55 +00:00
test_send_message_response.py test(a2a): migrate a2a_protocol legacy tests to tests/unit 2026-09-20 19:23:52 +00:00
test_utils.py refactor(typing): clear 1181 basedpyright Any errors across 431 files (#47789) 2026-10-24 11:31:09 -07:00