Coverage for .venv/lib/python3.13/site-packages/litellm/proxy/a2a/__init__.py: 100%
3 statements
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-10 12:01 +0000
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-10 12:01 +0000
1"""
2A2A registration helpers for the LiteLLM proxy.
4- ``discovery``: fetches the upstream agent's well-known card so the UI can
5 display its skills/capabilities for the user to pick from.
6- ``agent_card``: pure merge logic that builds the LiteLLM-fronted agent card
7 from the upstream card + the values the user set in the UI.
8- ``endpoints``: FastAPI routes that wire the above into the proxy.
9"""
11from litellm.proxy.a2a.agent_card import (
12 LITELLM_A2A_PROTOCOL_VERSION,
13 LITELLM_SECURITY_REQUIREMENTS,
14 LITELLM_SECURITY_SCHEMES,
15 merge_agent_card,
16)
17from litellm.proxy.a2a.discovery import (
18 AGENT_CARD_WELL_KNOWN_PATHS,
19 fetch_well_known_card,
20)
22__all__ = [
23 "AGENT_CARD_WELL_KNOWN_PATHS",
24 "LITELLM_A2A_PROTOCOL_VERSION",
25 "LITELLM_SECURITY_REQUIREMENTS",
26 "LITELLM_SECURITY_SCHEMES",
27 "fetch_well_known_card",
28 "merge_agent_card",
29]