Skip to content

Commit 44ee375

Browse files
authored
Merge branch 'main' into feat-tp
2 parents 3400143 + 3b811ca commit 44ee375

Some content is hidden

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

54 files changed

+1987
-232
lines changed

.github/actions/spelling/allow.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ dunders
2626
genai
2727
gle
2828
inmemory
29+
kwarg
2930
langgraph
3031
lifecycles
3132
linting

.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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
releaseType: python
2+
handleGHRelease: true
3+
bumpMinorPreMajor: false
4+
bumpPatchForMinorPreMajor: true

.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: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Changelog
2+
3+
## [0.2.3](https://github.com/google/a2a-python/compare/v0.2.2...v0.2.3) (2025-05-20)
4+
5+
6+
### Features
7+
8+
* Add request context builder with referenceTasks ([#56](https://github.com/google/a2a-python/issues/56)) ([f20bfe7](https://github.com/google/a2a-python/commit/f20bfe74b8cc854c9c29720b2ea3859aff8f509e))
9+
10+
## [0.2.2](https://github.com/google/a2a-python/compare/v0.2.1...v0.2.2) (2025-05-20)
11+
12+
13+
### Documentation
14+
15+
* Write/Update Docstrings for Classes/Methods ([#59](https://github.com/google/a2a-python/issues/59)) ([9f773ef](https://github.com/google/a2a-python/commit/9f773eff4dddc4eec723d519d0050f21b9ccc042))

development.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,20 @@
22

33
## Type generation from spec
44

5-
<!-- TODO replace spec.json with the public url so we always get the latest version-->
6-
75
```bash
8-
uv run datamodel-codegen --input ./spec.json --input-file-type jsonschema --output ./src/a2a/types.py --target-python-version 3.10 --output-model-type pydantic_v2.BaseModel --disable-timestamp --use-schema-description --use-union-operator --use-field-description --use-default --use-default-kwarg --use-one-literal-as-default --class-name A2A --use-standard-collections
6+
uv run datamodel-codegen \
7+
--url https://raw.githubusercontent.com/google/A2A/refs/heads/main/specification/json/a2a.json \
8+
--input-file-type jsonschema \
9+
--output ./src/a2a/types.py \
10+
--target-python-version 3.10 \
11+
--output-model-type pydantic_v2.BaseModel \
12+
--disable-timestamp \
13+
--use-schema-description \
14+
--use-union-operator \
15+
--use-field-description \
16+
--use-default \
17+
--use-default-kwarg \
18+
--use-one-literal-as-default \
19+
--class-name A2A \
20+
--use-standard-collections
921
```

0 commit comments

Comments
 (0)