Skip to content

feat(AG_UI): Upgrade AG_UI module event mechanism#2305

Open
chang6666 wants to merge 25 commits into
agentscope-ai:mainfrom
chang6666:main
Open

feat(AG_UI): Upgrade AG_UI module event mechanism#2305
chang6666 wants to merge 25 commits into
agentscope-ai:mainfrom
chang6666:main

Conversation

@chang6666

Copy link
Copy Markdown
Contributor

AgentScope-Java Version

2.0.1-SNAPSHOT

Description

  • Fixes [Feature]: Upgrade AG_UI module event mechanism #2202
    This PR upgrades the event-conversion mechanism of the agentscope-extensions-agui module from the 1.0 model (which relied on Agent.stream() / EventType / Event / StreamOptions) to the 2.0 fine-grained event stream (ReActAgent.streamEvents(...) + AgentEvent subtypes).

Checklist

Please check the following items before code is ready to be reviewed.

  • Code has been formatted with mvn spotless:apply
  • All tests are passing (mvn test)
  • Javadoc comments are complete and follow project conventions
  • Related documentation has been updated (e.g. links, examples, etc.)
  • Code is ready for review

chang6666 and others added 20 commits June 19, 2026 14:48
…entStateStore is configured

BuilderConfig unconditionally wired every agent with RemoteFilesystemSpec
but fell back to InMemoryAgentStateStore when no distributed AgentStateStore
bean was present. HarnessAgent rejects this combination, so the app could
never start on a fresh checkout with the default H2 datasource.

Now when the effective AgentStateStore is local (InMemory/JsonFile),
LocalFilesystemSpec is used instead, producing a consistent local-mode
topology. Distributed deployments are unaffected — RemoteFilesystemSpec is
still used when a distributed AgentStateStore (Redis/MySQL/etc.) is present.
…entStateStore is configured

BuilderConfig unconditionally wired every agent with RemoteFilesystemSpec
but fell back to InMemoryAgentStateStore when no distributed AgentStateStore
bean was present. HarnessAgent rejects this combination, so the app could
never start on a fresh checkout with the default H2 datasource.

Now when the effective AgentStateStore is local (InMemory/JsonFile),
LocalFilesystemSpec is used instead, producing a consistent local-mode
topology. Distributed deployments are unaffected — RemoteFilesystemSpec is
still used when a distributed AgentStateStore (Redis/MySQL/etc.) is present.
# Conflicts:
#	agentscope-examples/agents/agentscope-builder/src/main/java/io/agentscope/builder/web/config/BuilderConfig.java
@codecov

codecov Bot commented Jul 19, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.71930% with 14 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...agentscope/core/agui/adapter/AguiAgentAdapter.java 87.38% 5 Missing and 9 partials ⚠️

📢 Thoughts on this report? Let us know!

@chang6666 chang6666 changed the title Upgrade AG_UI module event mechanism [Feature]: Upgrade AG_UI module event mechanism Jul 19, 2026
@chang6666 chang6666 changed the title [Feature]: Upgrade AG_UI module event mechanism feat(AG_UI): Upgrade AG_UI module event mechanism Jul 19, 2026

@oss-maintainer oss-maintainer 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.

Summary

This PR contains 3349 lines of changes. Review in progress.


Automated review by github-manager-bot

@AgentScopeJavaBot AgentScopeJavaBot added enhancement New feature or request area/core/tool Tool, skill, RAG abstractions labels Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/core/tool Tool, skill, RAG abstractions enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Upgrade AG_UI module event mechanism

4 participants