pub enum ClientMessage {
HelloMath {
client_instance_id: String,
version: String,
min_supported_version: String,
},
SendMessage {
request_id: Uuid,
thread_id: Option<Uuid>,
text: String,
},
UpdateAuthToken {
token: String,
},
UpdateWorkspaceRoots {
default_root: String,
workspace_roots: Vec<String>,
},
RejectToolCall {
id: String,
reason: Option<String>,
},
AcceptToolCall {
id: String,
},
ToolCallOutputs {
outputs: Vec<ToolCallOutput>,
},
}Variants§
HelloMath
Fields
SendMessage
Send a user message.
If thread_id is None, the server creates a new thread and returns it in SendMessageAck.
request_id is a client-generated correlation id for 1:1 request↔response mapping.
UpdateAuthToken
Update/refresh auth token without reconnecting the WebSocket.
UpdateWorkspaceRoots
Update the client’s workspace roots / default root (used for prompt context + validations).
Sent separately from HelloMath so roots can be updated without reconnecting.
RejectToolCall
AcceptToolCall
ToolCallOutputs
Fields
§
outputs: Vec<ToolCallOutput>Trait Implementations§
Source§impl Clone for ClientMessage
impl Clone for ClientMessage
Source§fn clone(&self) -> ClientMessage
fn clone(&self) -> ClientMessage
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 ClientMessage
impl Debug for ClientMessage
Source§impl<'de> Deserialize<'de> for ClientMessage
impl<'de> Deserialize<'de> for ClientMessage
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 ClientMessage
impl RefUnwindSafe for ClientMessage
impl Send for ClientMessage
impl Sync for ClientMessage
impl Unpin for ClientMessage
impl UnwindSafe for ClientMessage
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