Skip to content

Commit 4285663

Browse files
committed
fix: Rename A2A_AGENT_CARD_URL to AGENT_A2A_RPC_URL
This better reflects the actual content. It's the URL *for* the agent card, not *of* the agent card.
1 parent cc8f548 commit 4285663

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ The SDK supports configuration through environment variables:
2929

3030
### Application Configuration
3131

32-
| Variable | Description | Default | Example |
33-
|----------|-------------|---------|--------------------------------|
34-
| `LOGLEVEL` | Sets the log level for the application | `INFO` | `DEBUG`, `INFO`, `WARNING`, `ERROR` |
35-
| `A2A_AGENT_CARD_URL` | URL for the A2A agent card endpoint | `None` | `https://my-agent.example.com/.well-known/agent-card.json` |
32+
| Variable | Description | Default | Example |
33+
|---------------------|------------------------------------------|---------|-------------------------------------|
34+
| `LOGLEVEL` | Sets the log level for the application | `INFO` | `DEBUG`, `INFO`, `WARNING`, `ERROR` |
35+
| `AGENT_A2A_RPC_URL` | RPC URL inserted into the A2A agent card | `None` | `https://my-agent.example.com/a2a` |
3636

3737
### OpenTelemetry Configuration
3838

adk/agenticlayer/agent_to_a2a.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ def health(_: Request) -> JSONResponse:
7171

7272
# Get the agent card URL from environment variable *only*
7373
# At this point, we don't know the applications port and the host is unknown when running in k8s or similar
74-
agent_card_url = os.environ.get("A2A_AGENT_CARD_URL", None)
74+
# A2A_AGENT_CARD_URL is deprecated but still supported for backwards compatibility
75+
agent_card_url = os.environ.get("AGENT_A2A_RPC_URL", os.environ.get("A2A_AGENT_CARD_URL", None))
7576
logger.debug(f"Using agent card url: {agent_card_url}")
7677

7778
# Add startup handler to build the agent card and configure A2A routes

0 commit comments

Comments
 (0)