hashbrown

AssistantMessage

AssistantMessage
@typeOutput
@typeToolUnion
AnyTool
attribution
readonly Attribution[]

Attribution the provider requires an app to show with the answer.

citations
readonly Citation[]

Which sources the answer cites, and where.

content
Output
encryptedValue
string

Opaque provider continuation data preserved across AG-UI runs. Hashbrown does not inspect or display this value.

id
string

The canonical AG-UI message id. It is the same while the message streams and after it is committed.

metadata
Metadata

Provider metadata preserved across AG-UI runs.

reasoning
string

Human-readable reasoning. When reasoningDetails is present, this value is derived from the ordered records' nonempty content.

reasoningDetails
readonly Readonly<ReasoningMessage>[]

Ordered AG-UI reasoning records, including opaque continuation data such as encrypted values, subagent run IDs, and metadata. When present, these records take precedence over reasoning.

role
'assistant'
serverToolCalls
readonly ServerToolCall[]

Tool calls the agent server executed itself, in the order the model made them, as ServerToolCall records. Present only when the message carries at least one.

sources
readonly ServerToolCallSource[]

Sources the answer drew on that came with no tool call.

subagentRunId
string

The subagent invocation that produced this message or requested this call. Calls inherit their enclosing assistant's owner when omitted.

toolCalls
ToolCall<ToolUnion>[]