pub enum StructuredOutputCategory {
JsonRoleInjection,
XmlChatMlInjection,
DelimiterInjection,
}Expand description
Categories of structured output injection
Variants§
JsonRoleInjection
JSON role/message injection ("role": "system")
XmlChatMlInjection
XML/ChatML tag injection (<system>, <|im_start|>)
DelimiterInjection
Delimiter injection (### System:, [INST], <<SYS>>)
Trait Implementations§
Source§impl Clone for StructuredOutputCategory
impl Clone for StructuredOutputCategory
Source§fn clone(&self) -> StructuredOutputCategory
fn clone(&self) -> StructuredOutputCategory
Returns a duplicate of the value. Read more
1.0.0 · 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 StructuredOutputCategory
impl Debug for StructuredOutputCategory
Source§impl Display for StructuredOutputCategory
impl Display for StructuredOutputCategory
Source§impl Hash for StructuredOutputCategory
impl Hash for StructuredOutputCategory
Source§impl PartialEq for StructuredOutputCategory
impl PartialEq for StructuredOutputCategory
impl Copy for StructuredOutputCategory
impl Eq for StructuredOutputCategory
impl StructuralPartialEq for StructuredOutputCategory
Auto Trait Implementations§
impl Freeze for StructuredOutputCategory
impl RefUnwindSafe for StructuredOutputCategory
impl Send for StructuredOutputCategory
impl Sync for StructuredOutputCategory
impl Unpin for StructuredOutputCategory
impl UnwindSafe for StructuredOutputCategory
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.