pub enum AgentCommand {
Enqueue {
context: InvocationContext,
message: Message,
options: RunOptions,
},
SubmitInteraction {
context: InvocationContext,
interaction: Interaction,
},
Cancel {
context: InvocationContext,
},
}Expand description
Semantic commands understood by the Runtime.
Variants§
Enqueue
Enqueues a new user message.
Fields
§
context: InvocationContextInvocation identity and ownership.
§
options: RunOptionsRuntime policy for this run.
SubmitInteraction
Supplies a response to a pending interaction.
Fields
§
context: InvocationContextInvocation identity and ownership.
§
interaction: InteractionSubmitted interaction.
Cancel
Requests cancellation of the current run.
Fields
§
context: InvocationContextInvocation identity and ownership.
Trait Implementations§
Source§impl Clone for AgentCommand
impl Clone for AgentCommand
Source§fn clone(&self) -> AgentCommand
fn clone(&self) -> AgentCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AgentCommand
impl Debug for AgentCommand
Source§impl<'de> Deserialize<'de> for AgentCommand
impl<'de> Deserialize<'de> for AgentCommand
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 PartialEq for AgentCommand
impl PartialEq for AgentCommand
Source§impl Serialize for AgentCommand
impl Serialize for AgentCommand
impl StructuralPartialEq for AgentCommand
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