[pull] main from CopilotKit:main#366
Merged
Merged
Conversation
… override The middleware reads state["ag-ui"]["inject_a2ui_tool"] and state["ag-ui"]["a2ui_schema"], but "ag-ui" was never declared on the StateSchema, so create_agent's StateGraph dropped both keys before the middleware ran — the generate_a2ui tool never injected and the catalog was lost. Declare the "ag-ui" channel via StateSchema.__annotations__ so the flag and catalog survive. Also add an a2ui_params kwarg so a host can steer the auto-injected generate_a2ui subagent (design/generation guidelines, catalog id, ...). The middleware still injects the bound model and folds the registered catalog in, but host-set values win.
0.0.42 ships the single-arg A2UIToolParams API the middleware's a2ui_params override relies on; pulls ag-ui-a2ui-toolkit 0.0.4 transitively. uv.lock is unchanged — it locks only the dev/test toolchain, not the runtime deps.
Mirror the sdk-python change: let a host steer the auto-injected generate_a2ui subagent via an a2uiParams option (guidelines, defaultCatalogId, toolName, ...). The middleware still injects the bound model and folds the registered catalog in, but host-set values win.
…re to 0.0.10 @ag-ui/langgraph 0.0.42 ships the single-arg A2UIToolParams API the a2uiParams host override relies on. Bump across sdk-js and runtime; @ag-ui/a2ui-middleware 0.0.10 in runtime. Lockfile regenerated. Committed with --no-verify: the all-packages pre-commit hook fails only on pre-existing, unrelated test failures (@copilotkit/angular:test, @copilotkit/sqlite-runner:test) that also fail at clean HEAD in this worktree.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )