Skip to content

fix(agent): deliver repaired structured output message as final ReAct output - #294

Merged
yuluo-yx merged 2 commits into
agentic-ai-java:mainfrom
XianReallyHot-ZZH:fix/issue-278-repaired-message-delivery
Oct 30, 2026
Merged

yuluo-yx merged 2 commits into
agentic-ai-java:mainfrom
XianReallyHot-ZZH:fix/issue-278-repaired-message-delivery

Conversation

@XianReallyHot-ZZH

Copy link
Copy Markdown
Contributor

Confirmed contribution to ARGI: deliver the finalizer's repaired structured output message as the independent ReAct final output — appended after the failed original which stays in history, announced to stream consumers via AgentEvent.Message before Finished — with delivery-consistency tests covering valid output, successful repair, repair-still-invalid, repair-client-failure and streaming completion. Fixes #278.

… output

Adopt the finalizer's repaired message as the final delivered message in
ReActAgent.finish: append it after the failed original (kept in history),
notify stream consumers through AgentEvent.Message before Finished, and keep
message, structured data and events consistent. Fixes agentic-ai-java#278.
Compare message texts null-safely and drop the positional last-element
guard so the repaired message is delivered on every termination path, and
pin the no-repair-client validation-failure state with a test.

@yuluo-yx yuluo-yx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

thanks for. your

@yuluo-yx
yuluo-yx merged commit 3cfff6d into agentic-ai-java:main Oct 30, 2026
7 checks passed
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.

[BUG][P2] 独立 ReAct 应将修复后的结构化输出消息用于最终交付

2 participants