Skip to content

Commit 8825fcb

Browse files
committed
Merge branch 'main' of github.com:google/a2a-python into swapydapy/requestcontextReferredTasks
2 parents ac4bc51 + 429c422 commit 8825fcb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1846
-1131
lines changed

.github/actions/spelling/allow.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ AError
44
ARequest
55
ARun
66
AServer
7+
AServers
78
AStarlette
89
EUR
910
GBP
@@ -13,6 +14,7 @@ JSONRPCt
1314
Llm
1415
aconnect
1516
adk
17+
agentic
1618
autouse
1719
cla
1820
cls

.github/actions/spelling/excludes.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,4 @@
8686
\.vscode/
8787
noxfile.py
8888
\.ruff.toml$
89+
CHANGELOG.md

.github/actions/spelling/line_forbidden.patterns

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@
295295
(?!'")[‘’“”]
296296

297297
# "an" should only be before vowels.
298-
\ban\s+(?![FHLMNRSX][A-Z0-9]+\b)(?!hour\b)(?!honest\b)([b-df-hj-np-tv-zB-DF-HJ-NP-TV-Z]{1}\w*)
298+
\ban\s+(?![FHLMNRSX][A-Z0-9]+\b)(?!hour\b)(?!honest\b)(?!httpx?\b)([b-df-hj-np-tv-zB-DF-HJ-NP-TV-Z]{1}\w*)
299299

300300
# Don't use Google internal links
301301
((corp|prod|sandbox).google.com|googleplex.com|https?://(?!localhost/)[0-9a-z][0-9a-z-]+/|(?:^|[^/.-])\b(?:go|b|cl|cr)/[a-z0-9_.-]+\b)

.github/linters/.markdownlint.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/linters/.mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[mypy]
22
exclude = examples/
3-
disable_error_code = import-not-found
3+
disable_error_code = import-not-found,annotation-unchecked
44

55
[mypy-examples.*]
66
follow_imports = skip

.github/release-please.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
releaseType: python
2+
handleGHRelease: true
3+
bumpMinorPreMajor: false

.github/release-trigger.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
enabled: true

.github/workflows/linter.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,5 @@ jobs:
6262
VALIDATE_JAVASCRIPT_STANDARD: false
6363
VALIDATE_TYPESCRIPT_STANDARD: false
6464
VALIDATE_GIT_COMMITLINT: false
65-
MARKDOWN_CONFIG_FILE: .markdownlint.json
6665
PYTHON_MYPY_CONFIG_FILE: .mypy.ini
67-
FILTER_REGEX_EXCLUDE: "^examples/.*"
66+
FILTER_REGEX_INCLUDE: "^src/**"

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changelog
2+
3+
## [0.2.2](https://github.com/google/a2a-python/compare/v0.2.1...v0.2.2) (2025-05-20)
4+
5+
6+
### Documentation
7+
8+
* Write/Update Docstrings for Classes/Methods ([#59](https://github.com/google/a2a-python/issues/59)) ([9f773ef](https://github.com/google/a2a-python/commit/9f773eff4dddc4eec723d519d0050f21b9ccc042))

README.md

Lines changed: 35 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,55 @@
1-
# A2A SDK (Prototype)
1+
# A2A Python SDK
22

3-
Early version of the A2A Python SDK.
3+
A Python library that helps run agentic applications as A2AServers following the [Agent2Agent (A2A) Protocol](https://google.github.io/A2A/).
44

5-
## Install SDK
5+
## Installation
66

7-
```bash
8-
pip install .
9-
```
7+
You can install the A2A SDK using either `uv` or `pip`.
108

11-
## Verify install
9+
## Prerequisites
1210

13-
```py
14-
import a2a
15-
```
11+
- Python 3.13+
12+
- `uv` (optional, but recommended) or `pip`
1613

17-
## Run Helloworld
14+
### Using `uv`
1815

19-
Run Remote Agent
16+
When you're working within a uv project or a virtual environment managed by uv, the preferred way to add packages is using uv add.
2017

2118
```bash
22-
cd examples/helloworld
23-
python __main__.py
19+
uv add a2a-sdk
2420
```
2521

26-
In another terminal, run the client
22+
### Using `pip`
23+
24+
If you prefer to use pip, the standard Python package installer, you can install `a2a-sdk` as follows
2725

2826
```bash
29-
python test_client.py
27+
pip install a2a-sdk
3028
```
3129

30+
## Examples
31+
32+
### [Helloworld Example](https://github.com/google/a2a-python/tree/main/examples/helloworld)
33+
34+
1. Run Remote Agent
35+
36+
```bash
37+
cd examples/helloworld
38+
uv run .
39+
```
40+
41+
2. In another terminal, run the client
42+
43+
```bash
44+
uv run test_client.py
45+
```
46+
47+
You can also find more examples [here](https://github.com/google/A2A/tree/main/samples/python/agents)
48+
3249
## License
3350

34-
This project is licensed under the terms of the [Apache 2.0 License](LICENSE).
51+
This project is licensed under the terms of the [Apache 2.0 License](https://raw.githubusercontent.com/google/a2a-python/refs/heads/main/LICENSE).
3552

3653
## Contributing
3754

38-
See [CONTRIBUTING.md](CONTRIBUTING.md) for contribution guidelines.
55+
See [CONTRIBUTING.md](https://github.com/google/a2a-python/blob/main/CONTRIBUTING.md) for contribution guidelines.

0 commit comments

Comments
 (0)