Repository navigation
feat(runtime-python)!: generative UI and a2uiVersion in the Python, Go, Ruby and .NET runtimes - #8350
Closed
AlemTuzlak wants to merge 2 commits into
Closed
AlemTuzlak wants to merge 2 commits into
AlemTuzlak wants to merge 2 commits into
Conversation
… runtimes
The A2UI cases now configure `generativeUI: { a2uiVersion: "0.9" }` and
expect `generative-ui-surface` events. New `generative-ui.a2ui-version.*`
cases cover which render tool each agent gets, the v0.9 schema context,
the conversion of v0.9 operations to 1.0, clicks reaching a v0.9 agent,
and the `generativeUI` field of `/info`.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ntime The Python runtime matches the TypeScript runtime: - `generative_ui` replaces the `a2ui=` parameter. - A 1.0 agent gets the `render_ui` tool and guide. - A 0.9 agent gets `render_a2ui` and a v0.9 schema built from the client's catalog. - v0.9 surfaces from any agent are converted to A2UI 1.0, and clicks on them go back to a 0.9 agent as `a2uiAction.userAction`. - `/info` reports `generativeUI`. All 146 runtime conformance cases pass. BREAKING CHANGE: the `a2ui=` parameter and the `A2UIConfig` export are removed. Use `generative_ui=GenerativeUIConfig(a2ui_version="0.9", ...)`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
@copilotkit/agentcore-runner
@copilotkit/angular
@copilotkit/channels
@copilotkit/channels-core
@copilotkit/channels-discord
@copilotkit/channels-intelligence
@copilotkit/channels-slack
@copilotkit/channels-teams
@copilotkit/channels-ui
@copilotkit/channels-whatsapp
@copilotkit/core
@copilotkit/intelligence-langgraph
@copilotkit/intelligence-mastra
@copilotkit/learning
@copilotkit/markdown
@copilotkit/mcp-apps-renderer
@copilotkit/react-core
@copilotkit/react-native
@copilotkit/runtime
@copilotkit/sdk-js
@copilotkit/shared
@copilotkit/sqlite-runner
@copilotkit/voice
@copilotkit/vue
@copilotkit/web-components
@copilotkit/web-inspector
commit: |
Contributor
|
Size Change: 0 B Total Size: 2.43 MB ℹ️ View Unchanged
|
Contributor
Author
Merged
4 tasks done
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.
Draft. Python is done. Go, Ruby and .NET still have to be ported before this is ready.
This brings the other runtimes to parity with the TypeScript runtime in #8348:
generativeUIwitha2uiVersionrender_uifor 1.0 agentsThe runtime conformance suite is the spec for every runtime.
What does this PR do?
generativeUI: { a2uiVersion: "0.9" }and expectgenerative-ui-surfaceevents.generative-ui.a2ui-version.*cases. They cover which render tool each agent gets, the v0.9 schema context, the operation conversion, clicks reaching a v0.9 agent, and/info.generative_uireplacesa2ui=. It addsrender_uiand the converters, ported from the TypeScript runtime.Related PRs and Issues
Checklist
!(for examplefeat(react-core)!: ...) and the description has aBREAKING CHANGE:line with migration steps. See VERSIONING.mdBREAKING CHANGE: the
a2uiruntime option is removed in every runtime. UsegenerativeUIwitha2uiVersion: "0.9"(Python:generative_ui=GenerativeUIConfig(a2ui_version="0.9")).Testing
Commands run
runtime-pythontest (377), lint (ruff) and typecheck (mypy strict): pass.Manual test
pnpm nx run-many -t build -p @copilotkit/runtime,@copilotkit/core --parallel=1NX_DAEMON=false pnpm nx run runtime-conformance:conformance -- -- packages/runtime-python/.venv/bin/python packages/runtime-python/examples/conformance.pyHow this PR makes testing easy:
tools/runtime-conformance/ui-cases.mjspackages/runtime-python/tests/test_generative_ui.pypackages/runtime-python/tests/test_a2ui_upgrade.pyRisk / rollback
🤖 Generated with Claude Code