#[repr(u32)]pub enum LlamaDecisionOrder {
None = 0,
QuestionNoul = 1,
QuestionChoice = 2,
QuestionScore = 3,
Option = 4,
}Expand description
What a joint decision head (clef and friends) reads an entry as.
Mirrors llama_decision_order
(llama.cpp #29831). A
run of entries sharing a value is one span, spans are separated by entries
marked Self::None, and an option belongs to the last question before it.
Only decision models read this; everything else leaves it at
Self::None.
Variants§
None = 0
Not read by the decision head. The default.
QuestionNoul = 1
Text of a question.
QuestionChoice = 2
Question asking for a choice between the options that follow.
QuestionScore = 3
Question asking for a score.
Option = 4
Text of an option belonging to the preceding question.
Trait Implementations§
Source§impl Clone for LlamaDecisionOrder
impl Clone for LlamaDecisionOrder
impl Copy for LlamaDecisionOrder
Source§impl Debug for LlamaDecisionOrder
impl Debug for LlamaDecisionOrder
Source§impl Default for LlamaDecisionOrder
impl Default for LlamaDecisionOrder
impl Eq for LlamaDecisionOrder
Source§impl From<LlamaDecisionOrder> for llama_decision_order
impl From<LlamaDecisionOrder> for llama_decision_order
Source§fn from(value: LlamaDecisionOrder) -> Self
fn from(value: LlamaDecisionOrder) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LlamaDecisionOrder
impl PartialEq for LlamaDecisionOrder
impl StructuralPartialEq for LlamaDecisionOrder
Auto Trait Implementations§
impl Freeze for LlamaDecisionOrder
impl RefUnwindSafe for LlamaDecisionOrder
impl Send for LlamaDecisionOrder
impl Sync for LlamaDecisionOrder
impl Unpin for LlamaDecisionOrder
impl UnsafeUnpin for LlamaDecisionOrder
impl UnwindSafe for LlamaDecisionOrder
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