feat(python): generate and register v0.8 pydantic models and basic catalog - #2303
Open
nan-yu wants to merge 1 commit into
Open
feat(python): generate and register v0.8 pydantic models and basic catalog#2303nan-yu wants to merge 1 commit into
nan-yu wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request adds support for version v0.8 of the A2UI protocol schema and basic catalog, updating the Pydantic model generator to conditionally handle versions without function implementations. Feedback on these changes suggests dynamically checking for the presence of functions in the generator instead of hardcoding a version check, and updating the generator to skip creating empty function_apis.py files to avoid linter errors due to unused imports.
nan-yu
force-pushed
the
v1_0_firing_python_5_v08
branch
2 times, most recently
from
August 17, 2026 18:15
64948a0 to
a933915
Compare
nan-yu
force-pushed
the
v1_0_firing_python_5_v08
branch
from
August 17, 2026 21:40
a933915 to
06131a0
Compare
nan-yu
force-pushed
the
v1_0_firing_python_5_v08
branch
from
August 17, 2026 21:57
06131a0 to
5f75801
Compare
nan-yu
force-pushed
the
v1_0_firing_python_5_v08
branch
from
August 17, 2026 22:00
5f75801 to
d8ee64d
Compare
nan-yu
force-pushed
the
v1_0_firing_python_5_v08
branch
from
August 17, 2026 22:03
d8ee64d to
9701458
Compare
nan-yu
force-pushed
the
v1_0_firing_python_5_v08
branch
from
August 17, 2026 22:07
9701458 to
4746d91
Compare
nan-yu
force-pushed
the
v1_0_firing_python_5_v08
branch
from
August 17, 2026 22:31
4746d91 to
b50373f
Compare
nan-yu
force-pushed
the
v1_0_firing_python_5_v08
branch
2 times, most recently
from
August 17, 2026 22:39
609d626 to
9298327
Compare
nan-yu
force-pushed
the
v1_0_firing_python_5_v08
branch
from
August 17, 2026 22:42
9298327 to
7de06a1
Compare
nan-yu
force-pushed
the
v1_0_firing_python_5_v08
branch
from
August 17, 2026 23:38
7de06a1 to
38d9e02
Compare
nan-yu
force-pushed
the
v1_0_firing_python_5_v08
branch
from
August 18, 2026 00:43
38d9e02 to
46ad2cf
Compare
nan-yu
force-pushed
the
v1_0_firing_python_5_v08
branch
from
August 18, 2026 01:18
46ad2cf to
12b9236
Compare
nan-yu
force-pushed
the
v1_0_firing_python_5_v08
branch
from
August 18, 2026 04:07
12b9236 to
ba9f68f
Compare
nan-yu
force-pushed
the
v1_0_firing_python_5_v08
branch
from
August 18, 2026 04:11
ba9f68f to
f727a2e
Compare
nan-yu
force-pushed
the
v1_0_firing_python_5_v08
branch
from
August 18, 2026 04:26
f727a2e to
8d96fc1
Compare
nan-yu
force-pushed
the
v1_0_firing_python_5_v08
branch
from
August 18, 2026 04:36
8d96fc1 to
8a5849d
Compare
…talog - Generated strongly typed Pydantic v2 data models for A2UI spec v0.8 under `python/a2ui_core/src/a2ui/core/schema/v0_8/` (`constants.py`, `common_types.py`, `server_to_client.py`, `client_to_server.py`, `client_capabilities.py`, `__init__.py`). - Generated standard basic catalog definitions for v0.8 under `python/a2ui_core/src/a2ui/core/basic_catalog/v0_8/` (`components.py`, `styles.py`, `__init__.py`). - Registered `V0_8 = "v0.8"` in `A2uiProtocolVersion` enum and updated multi-version envelope unions `AgentToRendererMessage` and `RendererToAgentMessage` in `python/a2ui_core/src/a2ui/core/schema/__init__.py`. - Deduplicated catalog initialization generation in `codegen_pydantic.py`, dynamically checked catalog function definitions via `bool(functions)`, and skipped generating empty `function_apis.py`. TAG=agy CONV=707c9b6b-b2da-4940-ba6e-67f0b4f1d563
nan-yu
force-pushed
the
v1_0_firing_python_5_v08
branch
from
August 18, 2026 04:47
8a5849d to
67176e9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is part of a stacked PR chain for Python multi-version protocol support:
v1_0_firing_1)v1_0_firing_python_2_codegen_skill)v1_0_firing_python_3_version_branching)v1_0_firing_python_4_v09)v1_0_firing_python_5_v08Description
v0.8underpython/a2ui_core/src/a2ui/core/schema/v0_8/(constants.py,common_types.py,server_to_client.py,client_to_server.py,client_capabilities.py,__init__.py).v0.8underpython/a2ui_core/src/a2ui/core/basic_catalog/v0_8/(components.py,function_apis.py,styles.py,__init__.py).V0_8 = "v0.8"inA2uiProtocolVersionenum and updates multi-version envelope unionsAgentToRendererMessageandRendererToAgentMessageinpython/a2ui_core/src/a2ui/core/schema/__init__.py.codegen_pydantic.pyand conditions function implementation imports on whether the specification version defines catalog functions (dir_name != "v0_8").TAG=agy
CONV=707c9b6b-b2da-4940-ba6e-67f0b4f1d563