Enum chat_prompts::PromptTemplateType
source · pub enum PromptTemplateType {
Show 37 variants
Llama2Chat,
Llama3Chat,
Llama3Tool,
MistralInstruct,
MistralTool,
MistralLite,
OpenChat,
CodeLlama,
CodeLlamaSuper,
HumanAssistant,
VicunaChat,
Vicuna11Chat,
VicunaLlava,
ChatML,
ChatMLTool,
InternLM2Tool,
Baichuan2,
WizardCoder,
Zephyr,
StableLMZephyr,
IntelNeural,
DeepseekChat,
DeepseekCoder,
DeepseekChat2,
DeepseekChat25,
SolarInstruct,
Phi2Chat,
Phi2Instruct,
Phi3Chat,
Phi3Instruct,
GemmaInstruct,
Octopus,
Glm4Chat,
GroqLlama3Tool,
BreezeInstruct,
Embedding,
Null,
}
Expand description
Define the chat prompt template types.
Variants§
Llama2Chat
Llama3Chat
Llama3Tool
MistralInstruct
MistralTool
MistralLite
OpenChat
CodeLlama
CodeLlamaSuper
HumanAssistant
VicunaChat
Vicuna11Chat
VicunaLlava
ChatML
ChatMLTool
InternLM2Tool
Baichuan2
WizardCoder
Zephyr
StableLMZephyr
IntelNeural
DeepseekChat
DeepseekCoder
DeepseekChat2
DeepseekChat25
SolarInstruct
Phi2Chat
Phi2Instruct
Phi3Chat
Phi3Instruct
GemmaInstruct
Octopus
Glm4Chat
GroqLlama3Tool
BreezeInstruct
Embedding
Null
Implementations§
source§impl PromptTemplateType
impl PromptTemplateType
pub fn has_system_prompt(&self) -> bool
Trait Implementations§
source§impl Clone for PromptTemplateType
impl Clone for PromptTemplateType
source§fn clone(&self) -> PromptTemplateType
fn clone(&self) -> PromptTemplateType
Returns a copy 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 PromptTemplateType
impl Debug for PromptTemplateType
source§impl<'de> Deserialize<'de> for PromptTemplateType
impl<'de> Deserialize<'de> for PromptTemplateType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for PromptTemplateType
impl Display for PromptTemplateType
source§impl From<PromptTemplateType> for ChatPrompt
impl From<PromptTemplateType> for ChatPrompt
source§fn from(ty: PromptTemplateType) -> Self
fn from(ty: PromptTemplateType) -> Self
Converts to this type from the input type.
source§impl FromStr for PromptTemplateType
impl FromStr for PromptTemplateType
source§impl PartialEq for PromptTemplateType
impl PartialEq for PromptTemplateType
source§impl Serialize for PromptTemplateType
impl Serialize for PromptTemplateType
source§impl ValueEnum for PromptTemplateType
impl ValueEnum for PromptTemplateType
impl Copy for PromptTemplateType
impl Eq for PromptTemplateType
impl StructuralPartialEq for PromptTemplateType
Auto Trait Implementations§
impl Freeze for PromptTemplateType
impl RefUnwindSafe for PromptTemplateType
impl Send for PromptTemplateType
impl Sync for PromptTemplateType
impl Unpin for PromptTemplateType
impl UnwindSafe for PromptTemplateType
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more