Skip to content

fix(agui): propagate run input and frontend tools - #1895

Merged
chickenlj merged 3 commits into
agentscope-ai:mainfrom
sandking:codex/agui-run-input-runtime-bridge
Jun 25, 2026
Merged

chickenlj merged 3 commits into
agentscope-ai:mainfrom
sandking:codex/agui-run-input-runtime-bridge

Conversation

@sandking

Copy link
Copy Markdown
Contributor

Summary

  • propagate the full AG-UI RunAgentInput through RuntimeContext, including typed RunAgentInput and agui.* fields
  • register frontend-declared AG-UI tools as temporary SchemaOnlyTool entries according to ToolMergeMode, then clean up or restore toolkit state after the run
  • preserve state when AguiRequestProcessor extracts the latest user message for server-side memory

Testing

  • JAVA_HOME=/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home PATH=/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home/bin:$PATH mvn -pl agentscope-extensions/agentscope-extensions-protocol/agentscope-extensions-agui -am -Dtest=AguiAgentAdapterTest,AguiRequestProcessorTest -DfailIfNoTests=false -Dsurefire.failIfNoSpecifiedTests=false test
  • JAVA_HOME=/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home PATH=/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home/bin:$PATH mvn -pl agentscope-extensions/agentscope-extensions-protocol/agentscope-extensions-agui -am test -DskipITs

@CLAassistant

CLAassistant commented Jun 24, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@codecov

codecov Bot commented Jun 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sandking
sandking marked this pull request as ready for review June 24, 2026 09:20
@sandking
sandking requested a review from a team June 24, 2026 09:20

@chickenlj chickenlj left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@chickenlj
chickenlj merged commit af57b5c into agentscope-ai:main Jun 25, 2026
5 checks passed
@sandking
sandking deleted the codex/agui-run-input-runtime-bridge branch June 28, 2026 12:45
@slyang520

Copy link
Copy Markdown

agui 这样修改后 RuntimeContext 不支持直接userId ,属性无法 setter;
旧版 contextWrite(c -> c.put(AgentBase.RUNTIME_CONTEXT_KEY, runtimeContext)) 灵活性更好啊

@slyang520

Copy link
Copy Markdown

@sandking

wzl521 pushed a commit to wzl521/agentscope-java that referenced this pull request Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants