pub enum Command {
UserCommand(UserCommand),
AgentCommand(AgentCommand),
}Expand description
The unified command type sent to the agent input channel.
Wraps both user-facing actions (UserCommand) and runtime-internal
operations (AgentCommand).
Variants§
UserCommand(UserCommand)
AgentCommand(AgentCommand)
Implementations§
Source§impl Command
impl Command
pub fn text(text: impl Into<String>) -> Self
pub fn with_content(content: Vec<ContentBlock>) -> Self
pub fn cancel() -> Self
pub fn clear_context() -> Self
pub fn agent(command: AgentCommand) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Command
impl !RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl !UnwindSafe for Command
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