Repository navigation
feat(agui): map the AG-UI message name field bidirectionally - #4343
Merged
Merged
Conversation
jujn
reviewed
Nov 23, 2026
| `AguiMessage.content` 现在使用类型化消息内容表示。仅处理纯文本时,请使用 `getTextContent()`。 | ||
|
|
||
| AG-UI 消息的 `name` 字段(发送者名)为双向映射:入站 wire `name` 会写入 `Msg.name`,出站 `Msg.name` 会输出到每条生成的 AG-UI 消息上(包括 reasoning 拆分与按工具结果拆分的消息)。字段缺省时出站 JSON 不输出该键。AG-UI 协议的 SSE 事件流本身不携带发送者名。 | ||
|
|
Collaborator
Author
There was a problem hiding this comment.
那就剪掉它(已剪除,EN/ZH 同步移除:1b8986d)。
The AG-UI protocol's optional BaseMessage.name carries the sender name, but AguiMessage had no binding for it: inbound names were dropped by Jackson and outbound Msg.name never reached the wire, breaking speaker attribution in multi-agent chats. Add the nullable name field to AguiMessage (JsonCreator constructor plus overload-preserving 5/6-param constructors, name-carrying factory overloads, NON_NULL serialization) and map it both ways in AguiMessageConverter: toMsg populates Msg.name, and every outbound message (standard, reasoning split, per-tool-result split) carries Msg.name. Existing callers and wire JSON are unaffected when the field is absent.
xzxiaoshan
force-pushed
the
feat/agui-message-name
branch
from
November 23, 2026 07:50
821e496 to
1b8986d
Compare
jujn
approved these changes
Nov 23, 2026
xzxiaoshan
added a commit
that referenced
this pull request
Nov 23, 2026
…et (#4346) `JevEvidenceProcessorTest.filterFailureIsWithheldButRankFailureFollowsScoredEvidence` failed on a loaded ubuntu runner (seen on PR #4343) with `expected: <[scored, unranked]> but was: <[]>`: the class's 2s supervision budget expired before any assessment completed, so the timeout fallback reported every passage as UNSCREENED and delivered nothing. The mocks reply instantly, so the budget is never the property under test. Raise the class budget from 2s to 6s and advance the two virtual-time TIMEOUT assertions past it (7s), matching the supervision-test fix in #3672. Virtual-clock awaits cost no real time and instant-mock tests are unaffected, so total test time is unchanged.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The AG-UI protocol defines an optional
namefield (sender name) on messages, butAguiMessagehad no binding for it: inbound names were dropped by Jackson, and outboundMsg.namenever reached the wire. This broke speaker attribution in multi-agent chats over the AG-UI channel.AguiMessage: add the nullablenamefield to the@JsonCreatorconstructor, keep the existing 5/6-param constructors as delegating overloads, and add name-carrying factory overloads. The key is omitted from JSON when null.AguiMessageConverter: mapnameboth ways — inbound wirenamepopulatesMsg.name; every outbound AG-UI message (standard, reasoning split, per-tool-result split) carriesMsg.name.AguiMessageConverterTest: 8 new cases covering inbound/outbound mapping, JSON round-trip, null-key omission, and the split paths.The field is optional on the wire: messages without a name serialize exactly as before, and old peers are unaffected.