Interface: AguiMessage
@kortexya/reasoninglayer / AguiMessage
Interface: AguiMessage
Section titled “Interface: AguiMessage”Defined in: src/types/agui.ts:81
A conversation message in an AG-UI run.
Remarks
Section titled “Remarks”The AG-UI wire contract is camelCase (toolCallId, toolCalls); the
normalizer emits those keys verbatim.
Example
Section titled “Example”const message: AguiMessage = { id: 'm1', role: 'user', content: 'Which patients are at risk?',};Properties
Section titled “Properties”content?
Section titled “content?”
optionalcontent?:string|null
Defined in: src/types/agui.ts:83
Text content.
optionalid?:string|null
Defined in: src/types/agui.ts:85
Message id.
role:
AguiRole
Defined in: src/types/agui.ts:87
The author of the message.
toolCallId?
Section titled “toolCallId?”
optionaltoolCallId?:string|null
Defined in: src/types/agui.ts:89
For tool messages: the call this message answers.
toolCalls?
Section titled “toolCalls?”
optionaltoolCalls?:AguiToolCall[] |null
Defined in: src/types/agui.ts:91
Tool calls issued by an assistant message.