Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
e38d44f
wip
guglielmo-san Mar 9, 2026
bba49a6
Merge remote-tracking branch 'upstream/1.0-dev' into guglielmoc/rewor…
guglielmo-san Mar 9, 2026
61b7304
feat: Implement and apply interceptors directly within BaseClient met…
guglielmo-san Mar 9, 2026
c8b2550
wip
guglielmo-san Mar 10, 2026
68db81e
add tests
guglielmo-san Mar 10, 2026
1235d9f
run ruff
guglielmo-san Mar 10, 2026
4967d97
add cast
guglielmo-san Mar 10, 2026
eaf1792
refactor: Simplify BeforeArgs initialization in send_message_streamin…
guglielmo-san Mar 10, 2026
1d5319c
refactor: Add explicit type hints to `BeforeArgs` and remove redundan…
guglielmo-san Mar 10, 2026
f379679
revert change
guglielmo-san Mar 10, 2026
8affcb3
refactor: Rename `CallInterceptor` to `ClientCallInterceptor` and sim…
guglielmo-san Mar 10, 2026
ef658ff
fix
guglielmo-san Mar 10, 2026
ab134b3
refactor: centralize stream interception and execution logic into `_e…
guglielmo-san Mar 10, 2026
92bc02f
refactor: Update stream event processing to use a task manager, adjus…
guglielmo-san Mar 10, 2026
0dad45d
refactor: Migrate authentication logic to the new interceptor pattern…
guglielmo-san Mar 10, 2026
191c970
refactor: simplify interceptor argument types by removing generic typ…
guglielmo-san Mar 10, 2026
2d21b05
Merge branch '1.0-dev' into guglielmoc/rework_client_interceptors
guglielmo-san Mar 10, 2026
afb7df9
refactor: make ClientCallInterceptor an abstract base class
guglielmo-san Mar 13, 2026
021c8b3
Merge remote-tracking branch 'refs/remotes/origin/guglielmoc/rework_c…
guglielmo-san Mar 13, 2026
b54e2ea
Merge remote-tracking branch 'upstream/1.0-dev' into guglielmoc/rewor…
guglielmo-san Mar 13, 2026
19da397
fix
guglielmo-san Mar 13, 2026
8f562e4
refactor
guglielmo-san Mar 13, 2026
126283d
refactor: Streamline A2A type generation workflow by using a shell sc…
guglielmo-san Mar 16, 2026
af7eea2
refactor: Extract v0.3 compatibility protobuf generation into a dedic…
guglielmo-san Mar 16, 2026
7da9372
update workflow
guglielmo-san Mar 16, 2026
147296e
set token
guglielmo-san Mar 16, 2026
1581fb5
fix workflow
guglielmo-san Mar 16, 2026
117bb5d
fix workflow
guglielmo-san Mar 16, 2026
713c7f5
fix
guglielmo-san Mar 16, 2026
aee2054
Merge remote-tracking branch 'upstream/1.0-dev' into guglielmoc/rewor…
guglielmo-san Mar 16, 2026
96d6049
fix spelling
guglielmo-san Mar 16, 2026
3033843
exclude types from linter
guglielmo-san Mar 16, 2026
21885b8
remove buf
guglielmo-san Mar 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/actions/spelling/excludes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
CHANGELOG.md
^src/a2a/grpc/
^src/a2a/types/
^src/a2a/compat/v0_3/a2a_v0_3*
^tests/
.pre-commit-config.yaml
(?:^|/)a2a\.json$
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ jobs:
- name: Add uv to PATH
run: |
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Install Buf
uses: bufbuild/buf-setup-action@v1
- name: Install dependencies
run: uv sync --locked

Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ jobs:
- name: Add uv to PATH
run: |
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Install Buf
uses: bufbuild/buf-setup-action@v1


# Coverage comparison for PRs (only on Python 3.13 to avoid duplicate work)
- name: Checkout Base Branch
Expand All @@ -80,10 +79,6 @@ jobs:
with:
clean: true

- name: Install dependencies (PR)
if: github.event_name == 'pull_request' && matrix.python-version == '3.13'
run: uv sync --locked && uv build

- name: Run coverage (PR)
if: github.event_name == 'pull_request' && matrix.python-version == '3.13'
run: |
Expand Down
55 changes: 0 additions & 55 deletions .github/workflows/update-a2a-types.yml

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ test_venv/
coverage.xml
.nox
spec.json
src/a2a/types/a2a.json
docker-compose.yaml
.geminiignore
14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,9 @@ changelog = "https://github.com/a2aproject/a2a-python/blob/main/CHANGELOG.md"
documentation = "https://a2a-protocol.org/latest/sdk/python/"

[build-system]
requires = ["hatchling", "uv-dynamic-versioning", "hatch-build-scripts"]
requires = ["hatchling", "uv-dynamic-versioning"]
build-backend = "hatchling.build"

[tool.hatch.build.hooks.build-scripts]
artifacts = ["src/a2a/types/a2a.json"]

[[tool.hatch.build.hooks.build-scripts.scripts]]
commands = ["bash scripts/gen_proto.sh"]
work_dir = "."

[tool.hatch.version]
source = "uv-dynamic-versioning"
Expand Down Expand Up @@ -291,6 +285,9 @@ exclude = [
"src/a2a/types/a2a_pb2.py",
"src/a2a/types/a2a_pb2.pyi",
"src/a2a/types/a2a_pb2_grpc.py",
"src/a2a/compat/v0_3/*_pb2.py",
"src/a2a/compat/v0_3/*_pb2.pyi",
"src/a2a/compat/v0_3/*_pb2_grpc.py",
"tests/**",
]

Expand Down Expand Up @@ -347,6 +344,9 @@ exclude = [
"src/a2a/types/a2a_pb2.py",
"src/a2a/types/a2a_pb2.pyi",
"src/a2a/types/a2a_pb2_grpc.py",
"src/a2a/compat/v0_3/*_pb2.py",
"src/a2a/compat/v0_3/*_pb2.pyi",
"src/a2a/compat/v0_3/*_pb2_grpc.py",
]
docstring-code-format = true
docstring-code-line-length = "dynamic"
Expand Down
6 changes: 0 additions & 6 deletions scripts/gen_proto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,4 @@ echo "Downloading legacy v0.3 proto file..."
# Commit hash was selected as a2a.proto version from 0.3 branch with latests fixes.
curl -o src/a2a/compat/v0_3/a2a_v0_3.proto https://raw.githubusercontent.com/a2aproject/A2A/b3b266d127dde3d1000ec103b252d1de81289e83/specification/grpc/a2a.proto

# Generate legacy v0.3 compatibility protobuf code
echo "Generating legacy v0.3 compatibility protobuf code"
npx --yes @bufbuild/buf generate src/a2a/compat/v0_3 --template buf.compat.gen.yaml

# Fix imports in legacy generated grpc file
echo "Fixing imports in src/a2a/compat/v0_3/a2a_v0_3_pb2_grpc.py"
sed 's/import a2a_v0_3_pb2 as a2a__v0__3__pb2/from . import a2a_v0_3_pb2 as a2a__v0__3__pb2/g' src/a2a/compat/v0_3/a2a_v0_3_pb2_grpc.py > src/a2a/compat/v0_3/a2a_v0_3_pb2_grpc.py.tmp && mv src/a2a/compat/v0_3/a2a_v0_3_pb2_grpc.py.tmp src/a2a/compat/v0_3/a2a_v0_3_pb2_grpc.py
10 changes: 10 additions & 0 deletions scripts/gen_proto_compat.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -e

# Generate legacy v0.3 compatibility protobuf code
echo "Generating legacy v0.3 compatibility protobuf code"
npx --yes @bufbuild/buf generate src/a2a/compat/v0_3 --template buf.compat.gen.yaml

# Fix imports in legacy generated grpc file
echo "Fixing imports in src/a2a/compat/v0_3/a2a_v0_3_pb2_grpc.py"
sed 's/import a2a_v0_3_pb2 as a2a__v0__3__pb2/from . import a2a_v0_3_pb2 as a2a__v0__3__pb2/g' src/a2a/compat/v0_3/a2a_v0_3_pb2_grpc.py > src/a2a/compat/v0_3/a2a_v0_3_pb2_grpc.py.tmp && mv src/a2a/compat/v0_3/a2a_v0_3_pb2_grpc.py.tmp src/a2a/compat/v0_3/a2a_v0_3_pb2_grpc.py
4 changes: 0 additions & 4 deletions src/a2a/compat/v0_3/.gitignore

This file was deleted.

Loading
Loading