pub enum AgentCommand {
SwitchModel(Box<dyn StreamingModelProvider>),
UpdateTools(Vec<ToolDefinition>),
UpdateMcpInstructions {
server: String,
body: Option<String>,
},
SetReasoningEffort(Option<ReasoningEffort>),
ReplaceConversation(Vec<ChatMessage>),
}Expand description
Runtime-internal operations that modify agent state without user interaction.
These are sent by the runtime controller or MCP event pumps to update tools, model, instructions, or to sync conversation history across agent runtimes.
Variants§
SwitchModel(Box<dyn StreamingModelProvider>)
UpdateTools(Vec<ToolDefinition>)
UpdateMcpInstructions
SetReasoningEffort(Option<ReasoningEffort>)
ReplaceConversation(Vec<ChatMessage>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgentCommand
impl !RefUnwindSafe for AgentCommand
impl Send for AgentCommand
impl Sync for AgentCommand
impl Unpin for AgentCommand
impl UnsafeUnpin for AgentCommand
impl !UnwindSafe for AgentCommand
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