Skip to content

Commit 2bf2101

Browse files
committed
docs: Update Readmes
1 parent 91ddd29 commit 2bf2101

File tree

2 files changed

+19
-20
lines changed

2 files changed

+19
-20
lines changed

README.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,6 @@ make build
2323
make check
2424
```
2525

26-
## Environment Variables
27-
28-
The SDK supports configuration through environment variables:
29-
30-
### Application Configuration
31-
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` |
36-
37-
### OpenTelemetry Configuration
38-
39-
The SDK automatically configures OpenTelemetry observability. You can customize the OTLP exporters using standard OpenTelemetry environment variables:
40-
https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/
41-
4226
## Creating a release
4327

4428
Create and push a GIT tag like `v0.1.0` and GitHub workflows will build and publish the package to PyPI.

adk/README.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ SDK for Google ADK that helps to get agents configured in the Agentic Layer quic
55
## Features
66

77
- Configures OTEL (Tracing, Metrics, Logging)
8-
- Converts an ADK agent into an instrumented starlette app with health endpoint
8+
- Converts an ADK agent into an instrumented starlette app
9+
- Configures A2A protocol for inter-agent communication
10+
- Offers parsing methods for sub agents and tools
911
- Set log level via env var `LOGLEVEL` (default: `INFO`)
1012

1113
## Usage
@@ -22,11 +24,24 @@ Basic usage example:
2224
from agenticlayer.agent_to_a2a import to_a2a
2325
from agenticlayer.otel import setup_otel
2426

25-
root_agent = ... # Your ADK agent here
26-
2727
# Set up OpenTelemetry instrumentation, logging and metrics
2828
setup_otel()
2929

30+
# Declare your ADK root agent
31+
root_agent = ...
32+
33+
# Define the URL where the agent will be available from outside
34+
# This can not be determined automatically,
35+
# because the port is only known at runtime,
36+
# when the starlette app is started with Uvicorn.
37+
rpc_url = "http://localhost:8000/"
38+
3039
# Create starlette app with A2A protocol
31-
app = to_a2a(root_agent)
40+
app = to_a2a(root_agent, rpc_url)
3241
```
42+
43+
## OpenTelemetry Configuration
44+
45+
The SDK automatically configures OpenTelemetry observability when running `setup_otel()`. You can customize the OTLP
46+
exporters using standard OpenTelemetry environment variables:
47+
https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/

0 commit comments

Comments
 (0)