#[non_exhaustive]pub enum MessageChangeKind {
Aborted,
Started,
Content {
delta: String,
},
Ended,
ToolCallStarted {
tool_call_id: ToolCallId,
name: String,
},
ToolCallArgs {
tool_call_id: ToolCallId,
delta: String,
},
ToolCallEnded {
tool_call_id: ToolCallId,
},
ToolResult {
tool_call_id: ToolCallId,
},
Activity,
EncryptedValue,
}Expand description
What happened to a message.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Aborted
Local consumption stopped before the producer completed this message.
Started
The message was created and is now open for content.
Content
Text was appended.
Ended
The message was closed; no more content will arrive for it.
ToolCallStarted
A tool call was attached to the message. Several can be open at once — a model asking for two things at once opens two.
ToolCallArgs
Argument JSON was appended to a tool call.
Parallel calls interleave their events, so consecutive ToolCallArgs
need not belong to the same call: tool_call_id is what separates them,
and arrival order is the only nesting there is — see the thread module
docs.
Fields
tool_call_id: ToolCallIdThe call being appended to.
ToolCallEnded
A tool call’s arguments are complete.
Fields
tool_call_id: ToolCallIdThe call that closed.
ToolResult
A tool result arrived and was appended as a new message.
Fields
tool_call_id: ToolCallIdThe call this result answers.
Activity
An activity was published or patched.
EncryptedValue
A provider’s opaque reasoning blob was attached to the message or to one of its tool calls.