pub enum ServerMessage {
Show 21 variants
Response {
agent: CompactString,
content: String,
},
StreamStart {
agent: CompactString,
},
StreamChunk {
content: String,
},
StreamEnd {
agent: CompactString,
},
SessionCleared {
agent: CompactString,
},
AgentList {
agents: Vec<AgentSummary>,
},
AgentDetail {
name: CompactString,
description: CompactString,
tools: Vec<CompactString>,
skill_tags: Vec<CompactString>,
system_prompt: String,
},
MemoryList {
entries: Vec<(String, String)>,
},
MemoryEntry {
key: String,
value: Option<String>,
},
DownloadStart {
model: CompactString,
},
DownloadFileStart {
filename: String,
size: u64,
},
DownloadProgress {
bytes: u64,
},
DownloadFileEnd {
filename: String,
},
DownloadEnd {
model: CompactString,
},
Error {
code: u16,
message: String,
},
SkillsReloaded {
count: usize,
},
McpAdded {
name: CompactString,
tools: Vec<CompactString>,
},
McpRemoved {
name: CompactString,
tools: Vec<CompactString>,
},
McpReloaded {
servers: Vec<McpServerSummary>,
},
McpServerList {
servers: Vec<McpServerSummary>,
},
Pong,
}Expand description
Messages sent by the gateway to the client.
Variants§
Response
Complete response from an agent.
StreamStart
Start of a streamed response.
Fields
agent: CompactStringSource agent identifier.
StreamChunk
A chunk of streamed content.
StreamEnd
End of a streamed response.
Fields
agent: CompactStringSource agent identifier.
SessionCleared
Session cleared for an agent.
Fields
agent: CompactStringAgent whose session was cleared.
AgentList
List of registered agents.
Fields
agents: Vec<AgentSummary>Agent summaries.
AgentDetail
Detailed agent information.
Fields
name: CompactStringAgent name.
description: CompactStringAgent description.
tools: Vec<CompactString>Registered tool names.
Skill tags.
MemoryList
List of memory entries.
MemoryEntry
A single memory entry.
DownloadStart
Download has started for a model.
Fields
model: CompactStringModel being downloaded.
DownloadFileStart
A file download has started.
DownloadProgress
Download progress for current file (delta, not cumulative).
DownloadFileEnd
A file download has completed.
DownloadEnd
All downloads complete for a model.
Fields
model: CompactStringModel that was downloaded.
Error
Error response.
SkillsReloaded
Skills were reloaded successfully.
McpAdded
MCP server added successfully.
McpRemoved
MCP server removed successfully.
McpReloaded
MCP servers reloaded from config.
Fields
servers: Vec<McpServerSummary>Connected servers after reload.
McpServerList
List of connected MCP servers.
Fields
servers: Vec<McpServerSummary>Connected servers.
Pong
Pong response to client ping.
Trait Implementations§
Source§impl Clone for ServerMessage
impl Clone for ServerMessage
Source§fn clone(&self) -> ServerMessage
fn clone(&self) -> ServerMessage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more