pub enum SessionUpdate {
MessageDelta {
delta: String,
},
ToolCallStart {
tool_call: ToolCallRecord,
},
ToolCallEnd {
tool_call_id: String,
result: Value,
},
TurnComplete {
status: TurnStatus,
},
Error {
code: String,
message: String,
},
ServerRequest {
request: ToolExecutionRequest,
},
}Expand description
Session update types
Variants§
MessageDelta
Text delta (streaming response)
ToolCallStart
Tool call started
Fields
§
tool_call: ToolCallRecordTool call details
ToolCallEnd
Tool call completed
TurnComplete
Turn completed
Fields
§
status: TurnStatusFinal status
Error
Error occurred
ServerRequest
Server requests the client to execute a tool (bidirectional ACP protocol).
Arrives via a server/request SSE event. After executing the tool,
send the result back with [AcpClientV2::session_tool_response].
Fields
§
request: ToolExecutionRequestThe tool execution request from the agent.
Trait Implementations§
Source§impl Clone for SessionUpdate
impl Clone for SessionUpdate
Source§fn clone(&self) -> SessionUpdate
fn clone(&self) -> SessionUpdate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionUpdate
impl Debug for SessionUpdate
Source§impl<'de> Deserialize<'de> for SessionUpdate
impl<'de> Deserialize<'de> for SessionUpdate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SessionUpdate
impl RefUnwindSafe for SessionUpdate
impl Send for SessionUpdate
impl Sync for SessionUpdate
impl Unpin for SessionUpdate
impl UnsafeUnpin for SessionUpdate
impl UnwindSafe for SessionUpdate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more