litellm/tests/unit/llms/a2a
Jesus Velarde ff1d9fb70f fix(a2a): limit OBO to URL agents on /a2a, exchange before pre-call, keep the block across edits
An agent with a token_exchange block and a custom_llm_provider now gets a 400 on /a2a/{agent_id}
before any IdP call, and the shared a2a/ registry lookup raises a 400 instead of calling the agent
with its static credential, so every route other than /a2a/{agent_id} on a URL agent fails closed.
The exchange now runs before the pre-call hooks, so a refused exchange no longer leaks a
max_parallel_requests reservation. An edit that omits token_exchange keeps the stored block, and an
unknown key in the block is a 500 that names it.
2026-11-21 17:36:51 -08:00
..
chat fix(a2a): limit OBO to URL agents on /a2a, exchange before pre-call, keep the block across edits 2026-11-21 17:36:51 -08:00
__init__.py test(unit): make every tests/unit directory a package so pytest collection is unique 2026-09-20 11:50:59 +00:00
test_common_utils.py fix(a2a): send agent litellm_params.api_key as bearer auth on the A2A hop (#49474) 2026-10-31 12:06:52 -07:00