You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to work on this. I plan to add reasoning-message conversion in AguiMessageConverter with focused regression coverage, keeping the existing AguiEvent reasoning behavior backward compatible. I will first verify the current converter model and test contract before opening a PR.
I have confirmed the current AG-UI model has no dedicated reasoning field on AguiMessage, while reasoning is represented by streaming ReasoningMessage events. Before implementing a new wire field or folding reasoning into text content, could maintainers confirm the expected AG-UI message shape for non-streaming conversion? I can then add the compatible converter and regression test.
Feasibility: Feasible. The streaming adapter already converts ThinkingBlock to AG-UI reasoning events via ThinkingBlockEventConverter (lines 24-53). The gap is confined to the batch converter: AguiMessageConverter.toAguiMessage() at lines 136-156 iterates content blocks but has no branch for ThinkingBlock, and AguiMessage has no reasoning field to carry it.
Scope: Two files require changes: AguiMessage (add a reasoning content field or reasoning-aware content type per the AG-UI spec's role: "reasoning" message shape) and AguiMessageConverter.toAguiMessage() (map ThinkingBlock.thinking into the new field). Community comments reference the AG-UI reasoning messages spec as the target shape.
Compatibility: Additive field on AguiMessage (nullable, backwards-compatible). Existing consumers that ignore unknown fields will not break.
Verified on current main: confirmed ThinkingBlock is absent from the batch conversion path while present in the streaming path.
The same method has a second gap besides reasoning: AguiMessageConverter.toAguiMessage(Msg) drops non-text content. A user Msg with [TextBlock("look"), ImageBlock(base64 png)] converts to AguiMessage{content=Text[value=look]}, and a message with only an ImageBlock converts to content=null, although toMsg accepts image/audio/video/document InputContent, so the two directions are asymmetric. Verified on 2.0.4-SNAPSHOT.
Activity
hexly666 commentedon Aug 28, 2026
增加配置:agentscope.agui.enable-reasoning=true 的配置可以打开
joman-jiang commentedon Aug 31, 2026
是的,这个配置可以开启AguiEvent.ReasoningMessage*事件的转化,但不是AguiMessage
CryoThrust commentedon Aug 31, 2026
I would like to work on this. I plan to add reasoning-message conversion in AguiMessageConverter with focused regression coverage, keeping the existing AguiEvent reasoning behavior backward compatible. I will first verify the current converter model and test contract before opening a PR.
CryoThrust commentedon Aug 31, 2026
I have confirmed the current AG-UI model has no dedicated reasoning field on AguiMessage, while reasoning is represented by streaming ReasoningMessage events. Before implementing a new wire field or folding reasoning into text content, could maintainers confirm the expected AG-UI message shape for non-streaming conversion? I can then add the compatible converter and regression test.
dragondyt commentedon Sep 2, 2026
https://docs.ag-ui.com/concepts/messages#reasoning-messages
dragondyt commentedon Sep 2, 2026
role: "reasoning"
oss-maintainer commentedon Sep 14, 2026
Issue Evaluation
Category:
enhancement| Area:area/ext/integration| Status: EvaluatedFeasibility: Feasible. The streaming adapter already converts
ThinkingBlockto AG-UI reasoning events viaThinkingBlockEventConverter(lines 24-53). The gap is confined to the batch converter:AguiMessageConverter.toAguiMessage()at lines 136-156 iterates content blocks but has no branch forThinkingBlock, andAguiMessagehas no reasoning field to carry it.Scope: Two files require changes:
AguiMessage(add a reasoning content field or reasoning-aware content type per the AG-UI spec'srole: "reasoning"message shape) andAguiMessageConverter.toAguiMessage()(mapThinkingBlock.thinkinginto the new field). Community comments reference the AG-UI reasoning messages spec as the target shape.Compatibility: Additive field on
AguiMessage(nullable, backwards-compatible). Existing consumers that ignore unknown fields will not break.Verified on current
main: confirmedThinkingBlockis absent from the batch conversion path while present in the streaming path.Automated evaluation by github-manager-bot
xuchaoguo1983 commentedon Oct 1, 2026
The same method has a second gap besides reasoning:
AguiMessageConverter.toAguiMessage(Msg)drops non-text content. A userMsgwith[TextBlock("look"), ImageBlock(base64 png)]converts toAguiMessage{content=Text[value=look]}, and a message with only anImageBlockconverts tocontent=null, althoughtoMsgaccepts image/audio/video/documentInputContent, so the two directions are asymmetric. Verified on 2.0.4-SNAPSHOT.feat(agui): convert reasoning messages (agentscope-ai#3239)