pub enum ChatCommand {
UserMessage(String),
InferenceToken(String),
InferenceComplete,
InferenceError(String),
ToolCallResult {
id: String,
result: String,
},
Cancel,
}Expand description
Commands sent to the chat state machine.
Variants§
UserMessage(String)
User submitted a message.
InferenceToken(String)
An inference token arrived from the backend.
InferenceComplete
Inference stream completed.
InferenceError(String)
Inference stream errored.
ToolCallResult
Tool execution result.
Cancel
Cancel current generation.
Trait Implementations§
Source§impl Clone for ChatCommand
impl Clone for ChatCommand
Source§fn clone(&self) -> ChatCommand
fn clone(&self) -> ChatCommand
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 moreAuto Trait Implementations§
impl Freeze for ChatCommand
impl RefUnwindSafe for ChatCommand
impl Send for ChatCommand
impl Sync for ChatCommand
impl Unpin for ChatCommand
impl UnsafeUnpin for ChatCommand
impl UnwindSafe for ChatCommand
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