#[non_exhaustive]pub enum MessageChangeKind {
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
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 session 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.
Trait Implementations§
Source§impl Clone for MessageChangeKind
impl Clone for MessageChangeKind
Source§fn clone(&self) -> MessageChangeKind
fn clone(&self) -> MessageChangeKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MessageChangeKind
impl Debug for MessageChangeKind
Source§impl PartialEq for MessageChangeKind
impl PartialEq for MessageChangeKind
Source§fn eq(&self, other: &MessageChangeKind) -> bool
fn eq(&self, other: &MessageChangeKind) -> bool
self and other values to be equal, and is used by ==.