pub struct TemplateFragments;
Expand description
Common template fragments for reuse
Implementations§
Source§impl TemplateFragments
impl TemplateFragments
Sourcepub fn instruction_prefix() -> &'static str
pub fn instruction_prefix() -> &'static str
Standard instruction prefix
Sourcepub fn json_format_instruction() -> &'static str
pub fn json_format_instruction() -> &'static str
JSON format instruction
Sourcepub fn yaml_format_instruction() -> &'static str
pub fn yaml_format_instruction() -> &'static str
YAML format instruction
Sourcepub fn reasoning_instruction() -> &'static str
pub fn reasoning_instruction() -> &'static str
Reasoning instruction for local models
Sourcepub fn examples_header() -> &'static str
pub fn examples_header() -> &'static str
Example section header
Sourcepub fn input_header() -> &'static str
pub fn input_header() -> &'static str
Input section header
Sourcepub fn output_header(format: FormatType) -> String
pub fn output_header(format: FormatType) -> String
Output section header
Auto Trait Implementations§
impl Freeze for TemplateFragments
impl RefUnwindSafe for TemplateFragments
impl Send for TemplateFragments
impl Sync for TemplateFragments
impl Unpin for TemplateFragments
impl UnwindSafe for TemplateFragments
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