pub enum ClientEvent {
Show 22 variants
AssistantMessageAdded {
message: Message,
model: ModelId,
},
UserMessageAdded {
message: Message,
},
ToolMessageAdded {
message: Message,
},
MessageUpdated {
message: Message,
},
MessageDelta {
id: MessageId,
delta: String,
},
ThinkingDelta {
op_id: OpId,
message_id: MessageId,
delta: String,
},
ToolCallDelta {
op_id: OpId,
message_id: MessageId,
tool_call_id: ToolCallId,
delta: ToolCallDelta,
},
CompactResult {
result: CompactResult,
},
ConversationCompacted {
record: CompactionRecord,
},
ToolStarted {
id: ToolCallId,
name: String,
parameters: Value,
},
ToolCompleted {
id: ToolCallId,
name: String,
result: ToolResult,
},
ToolFailed {
id: ToolCallId,
name: String,
error: String,
},
ApprovalRequested {
request_id: RequestId,
tool_call: ToolCall,
},
ProcessingStarted {
op_id: OpId,
},
ProcessingCompleted {
op_id: OpId,
},
OperationCancelled {
op_id: OpId,
pending_tool_calls: usize,
popped_queued_item: Option<QueuedWorkItem>,
},
WorkspaceChanged,
WorkspaceFiles {
files: Vec<String>,
},
Error {
message: String,
},
McpServerStateChanged {
server_name: String,
state: McpServerState,
},
SessionConfigUpdated {
config: Box<SessionConfig>,
primary_agent_id: String,
},
QueueUpdated {
head: Option<QueuedWorkItem>,
count: usize,
},
}Variants§
AssistantMessageAdded
UserMessageAdded
ToolMessageAdded
MessageUpdated
MessageDelta
ThinkingDelta
ToolCallDelta
CompactResult
Fields
§
result: CompactResultConversationCompacted
Fields
§
record: CompactionRecordToolStarted
ToolCompleted
ToolFailed
ApprovalRequested
ProcessingStarted
ProcessingCompleted
OperationCancelled
WorkspaceChanged
WorkspaceFiles
Error
McpServerStateChanged
SessionConfigUpdated
QueueUpdated
Trait Implementations§
Source§impl Clone for ClientEvent
impl Clone for ClientEvent
Source§fn clone(&self) -> ClientEvent
fn clone(&self) -> ClientEvent
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 moreAuto Trait Implementations§
impl Freeze for ClientEvent
impl RefUnwindSafe for ClientEvent
impl Send for ClientEvent
impl Sync for ClientEvent
impl Unpin for ClientEvent
impl UnwindSafe for ClientEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request