pub enum ClientMessage {
Show 14 variants
Send {
agent: CompactString,
content: String,
},
Stream {
agent: CompactString,
content: String,
},
ClearSession {
agent: CompactString,
},
ListAgents,
AgentInfo {
agent: CompactString,
},
ListMemory,
GetMemory {
key: String,
},
Download {
model: CompactString,
},
ReloadSkills,
McpAdd {
name: CompactString,
command: String,
args: Vec<String>,
env: BTreeMap<String, String>,
},
McpRemove {
name: CompactString,
},
McpReload,
McpList,
Ping,
}Expand description
Messages sent by the client to the gateway.
Variants§
Send
Send a message to an agent and receive a complete response.
Stream
Send a message to an agent and receive a streamed response.
ClearSession
Clear the session history for an agent.
Fields
§
agent: CompactStringTarget agent identifier.
ListAgents
List all registered agents.
AgentInfo
Get detailed info for a specific agent.
Fields
§
agent: CompactStringAgent name.
ListMemory
List all memory entries.
GetMemory
Get a specific memory entry by key.
Download
Request download of a model’s files with progress reporting.
Fields
§
model: CompactStringHuggingFace model ID (e.g. “microsoft/Phi-3.5-mini-instruct”).
ReloadSkills
Reload skills from disk.
McpAdd
Add an MCP server to config and reload.
Fields
§
name: CompactStringServer name.
McpRemove
Remove an MCP server from config and reload.
Fields
§
name: CompactStringServer name to remove.
McpReload
Reload MCP servers from walrus.toml.
McpList
List connected MCP servers and their tools.
Ping
Ping the server (keepalive).
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
Source§impl From<AgentInfoRequest> for ClientMessage
impl From<AgentInfoRequest> for ClientMessage
Source§fn from(r: AgentInfoRequest) -> Self
fn from(r: AgentInfoRequest) -> Self
Converts to this type from the input type.
Source§impl From<ClearSessionRequest> for ClientMessage
impl From<ClearSessionRequest> for ClientMessage
Source§fn from(r: ClearSessionRequest) -> Self
fn from(r: ClearSessionRequest) -> Self
Converts to this type from the input type.
Source§impl From<DownloadRequest> for ClientMessage
impl From<DownloadRequest> for ClientMessage
Source§fn from(r: DownloadRequest) -> Self
fn from(r: DownloadRequest) -> Self
Converts to this type from the input type.
Source§impl From<GetMemoryRequest> for ClientMessage
impl From<GetMemoryRequest> for ClientMessage
Source§fn from(r: GetMemoryRequest) -> Self
fn from(r: GetMemoryRequest) -> Self
Converts to this type from the input type.
Source§impl From<McpAddRequest> for ClientMessage
impl From<McpAddRequest> for ClientMessage
Source§fn from(r: McpAddRequest) -> Self
fn from(r: McpAddRequest) -> Self
Converts to this type from the input type.
Source§impl From<McpRemoveRequest> for ClientMessage
impl From<McpRemoveRequest> for ClientMessage
Source§fn from(r: McpRemoveRequest) -> Self
fn from(r: McpRemoveRequest) -> Self
Converts to this type from the input type.
Source§impl From<SendRequest> for ClientMessage
impl From<SendRequest> for ClientMessage
Source§fn from(r: SendRequest) -> Self
fn from(r: SendRequest) -> Self
Converts to this type from the input type.
Source§impl From<StreamRequest> for ClientMessage
impl From<StreamRequest> for ClientMessage
Source§fn from(r: StreamRequest) -> Self
fn from(r: StreamRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ClientMessage
impl RefUnwindSafe for ClientMessage
impl Send for ClientMessage
impl Sync for ClientMessage
impl Unpin for ClientMessage
impl UnsafeUnpin 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