Skip to content

Commit c8e2c52

Browse files
committed
chore: update docs to reflect new layout
1 parent a6ccf9b commit c8e2c52

2 files changed

Lines changed: 24 additions & 19 deletions

File tree

AGENTS.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,17 @@ Use `just` for all development tasks:
2222

2323
```
2424
handler/
25-
├── packages/
26-
│ ├── cli/ # handler-cli: CLI tool (click, httpx)
27-
│ ├── client/ # handler-client: A2A protocol wrapper (a2a-sdk)
28-
│ ├── common/ # handler-common: Shared utilities (rich, logging)
29-
│ └── server/ # handler-server: Reference A2A server (google-adk, litellm)
30-
├── src/handler/ # handler-app: TUI application (textual)
31-
└── tests/ # pytest tests
25+
├── src/a2a_handler/ # Main package
26+
│ ├── _version.py # Version string
27+
│ ├── cli.py # CLI (click)
28+
│ ├── client.py # A2A protocol client (a2a-sdk)
29+
│ ├── server.py # A2A server agent (google-adk, litellm)
30+
│ ├── tui.py # TUI application (textual)
31+
│ ├── common/ # Shared utilities (rich, logging)
32+
│ │ ├── logging.py
33+
│ │ └── printing.py
34+
│ └── components/ # TUI components
35+
└── tests/ # pytest tests
3236
```
3337

3438
## Code Style & Conventions
@@ -47,14 +51,14 @@ handler/
4751

4852
## A2A Protocol
4953

50-
The `packages/client` library encapsulates A2A protocol logic:
54+
The `a2a_handler.client` module provides A2A protocol logic:
5155
- `build_http_client()` - Create configured HTTP client
5256
- `fetch_agent_card()` - Retrieve agent metadata
5357
- `send_message_to_agent()` - Send messages and get responses
5458

5559
## Key Dependencies
5660

57-
- **CLI**: `click`, `httpx`
61+
- **CLI**: `click`
5862
- **Client**: `a2a-sdk`, `httpx`
5963
- **Server**: `google-adk`, `litellm`, `uvicorn`
6064
- **TUI**: `textual`

CONTRIBUTING.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22

33
## Architecture
44

5-
Handler is a [uv managed workspace](https://docs.astral.sh/uv/concepts/projects/workspaces/) with five packages:
5+
Handler is a single Python package (`a2a-handler`) with all modules under `src/a2a_handler/`:
66

7-
| Package | Name | Description |
8-
|---------|------|-------------|
9-
| `packages/cli` | `handler-cli` | CLI built with `click`. Entry point: `handler` |
10-
| `packages/client` | `handler-client` | A2A protocol client library using `a2a-sdk` |
11-
| `packages/common` | `handler-common` | Shared utilities (logging, printing with `rich`) |
12-
| `packages/server` | `handler-server` | Reference A2A agent using `google-adk` + `litellm` |
13-
| `src/handler` | `handler-app` | TUI application built with `textual` |
7+
| Module | Description |
8+
|--------|-------------|
9+
| `cli.py` | CLI built with `click`. Entry point: `handler` |
10+
| `client.py` | A2A protocol client library using `a2a-sdk` |
11+
| `common/` | Shared utilities (logging, printing with `rich`) |
12+
| `server.py` | Reference A2A agent using `google-adk` + `litellm` |
13+
| `tui.py` | TUI application built with `textual` |
14+
| `components/` | TUI components |
1415

1516
## Prerequisites
1617

@@ -61,10 +62,10 @@ just install # or: uv sync
6162

6263
## A2A Protocol
6364

64-
The `packages/client` library provides the A2A protocol implementation:
65+
The `a2a_handler.client` module provides the A2A protocol implementation:
6566

6667
```python
67-
from handler_client import build_http_client, fetch_agent_card, send_message_to_agent
68+
from a2a_handler.client import build_http_client, fetch_agent_card, send_message_to_agent
6869

6970
async with build_http_client() as client:
7071
card = await fetch_agent_card("http://localhost:8000", client)

0 commit comments

Comments
 (0)