pub enum ModelInput {
Context(ModelMessage),
Respond(ModelMessage),
}Expand description
Non-user input to an LM stage, tagged with whether it triggers a generation.
Variants§
Context(ModelMessage)
Add the message to conversation history without generating.
Respond(ModelMessage)
Add the message and begin a new generation.
Trait Implementations§
Source§impl Clone for ModelInput
impl Clone for ModelInput
Source§fn clone(&self) -> ModelInput
fn clone(&self) -> ModelInput
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 ModelInput
impl Debug for ModelInput
impl Eq for ModelInput
Source§impl PartialEq for ModelInput
impl PartialEq for ModelInput
impl StructuralPartialEq for ModelInput
Auto Trait Implementations§
impl Freeze for ModelInput
impl RefUnwindSafe for ModelInput
impl Send for ModelInput
impl Sync for ModelInput
impl Unpin for ModelInput
impl UnsafeUnpin for ModelInput
impl UnwindSafe for ModelInput
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