InstructPromptTrait

Trait InstructPromptTrait 

Source
pub trait InstructPromptTrait {
    // Required method
    fn instruct_prompt_mut(&mut self) -> &mut InstructPrompt;

    // Provided methods
    fn set_instructions<T>(&mut self, instructions: T) -> &mut Self
       where T: AsRef<str> { ... }
    fn instructions(&mut self) -> &mut PromptMessage { ... }
    fn set_supporting_material<T>(
        &mut self,
        supporting_material: T,
    ) -> &mut Self
       where T: AsRef<str> { ... }
    fn supporting_material(&mut self) -> &mut PromptMessage { ... }
}

Required Methods§

Provided Methods§

Source

fn set_instructions<T>(&mut self, instructions: T) -> &mut Self
where T: AsRef<str>,

Source

fn instructions(&mut self) -> &mut PromptMessage

Source

fn set_supporting_material<T>(&mut self, supporting_material: T) -> &mut Self
where T: AsRef<str>,

Source

fn supporting_material(&mut self) -> &mut PromptMessage

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§