Skip to content

Interface: AguiMessage

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Agui / AguiMessage

Interface: AguiMessage

Defined in: src/types/agui.ts:81

A conversation message in an AG-UI run.

Remarks

The AG-UI wire contract is camelCase (toolCallId, toolCalls); the normalizer emits those keys verbatim.

Example

const message: AguiMessage = {
id: 'm1',
role: 'user',
content: 'Which patients are at risk?',
};

Properties

content?

optional content: string | null

Defined in: src/types/agui.ts:83

Text content.


id?

optional id: string | null

Defined in: src/types/agui.ts:85

Message id.


role

role: AguiRole

Defined in: src/types/agui.ts:87

The author of the message.


toolCallId?

optional toolCallId: string | null

Defined in: src/types/agui.ts:89

For tool messages: the call this message answers.


toolCalls?

optional toolCalls: AguiToolCall[] | null

Defined in: src/types/agui.ts:91

Tool calls issued by an assistant message.