Enum chat_prompts::chat::ChatPrompt
source · pub enum ChatPrompt {
Show 35 variants
Llama2ChatPrompt(Llama2ChatPrompt),
Llama3ChatPrompt(Llama3ChatPrompt),
Llama3ToolPrompt(Llama3ToolPrompt),
MistralInstructPrompt(MistralInstructPrompt),
MistralToolPrompt(MistralToolPrompt),
MistralLitePrompt(MistralLitePrompt),
OpenChatPrompt(OpenChatPrompt),
CodeLlamaInstructPrompt(CodeLlamaInstructPrompt),
CodeLlamaSuperInstructPrompt(CodeLlamaSuperInstructPrompt),
HumanAssistantChatPrompt(HumanAssistantChatPrompt),
VicunaChatPrompt(VicunaChatPrompt),
Vicuna11ChatPrompt(Vicuna11ChatPrompt),
VicunaLlavaPrompt(VicunaLlavaPrompt),
ChatMLPrompt(ChatMLPrompt),
ChatMLToolPrompt(ChatMLToolPrompt),
InternLM2ToolPrompt(InternLM2ToolPrompt),
Baichuan2ChatPrompt(Baichuan2ChatPrompt),
WizardCoderPrompt(WizardCoderPrompt),
ZephyrChatPrompt(ZephyrChatPrompt),
StableLMZephyrChatPrompt(StableLMZephyrChatPrompt),
NeuralChatPrompt(NeuralChatPrompt),
DeepseekChatPrompt(DeepseekChatPrompt),
DeepseekCoderPrompt(DeepseekCoderPrompt),
DeepseekChat2Prompt(DeepseekChat2Prompt),
DeepseekChat25Prompt(DeepseekChat25Prompt),
SolarInstructPrompt(SolarInstructPrompt),
Phi2ChatPrompt(Phi2ChatPrompt),
Phi2InstructPrompt(Phi2InstructPrompt),
Phi3ChatPrompt(Phi3ChatPrompt),
Phi3InstructPrompt(Phi3InstructPrompt),
GemmaInstructPrompt(GemmaInstructPrompt),
OctopusPrompt(OctopusPrompt),
Glm4ChatPrompt(Glm4ChatPrompt),
GroqLlama3ToolPrompt(GroqLlama3ToolPrompt),
BreezeInstructPrompt(BreezeInstructPrompt),
}
Variants§
Llama2ChatPrompt(Llama2ChatPrompt)
Llama3ChatPrompt(Llama3ChatPrompt)
Llama3ToolPrompt(Llama3ToolPrompt)
MistralInstructPrompt(MistralInstructPrompt)
MistralToolPrompt(MistralToolPrompt)
MistralLitePrompt(MistralLitePrompt)
OpenChatPrompt(OpenChatPrompt)
CodeLlamaInstructPrompt(CodeLlamaInstructPrompt)
CodeLlamaSuperInstructPrompt(CodeLlamaSuperInstructPrompt)
HumanAssistantChatPrompt(HumanAssistantChatPrompt)
VicunaChatPrompt(VicunaChatPrompt)
Vicuna 1.0
Vicuna11ChatPrompt(Vicuna11ChatPrompt)
Vicuna 1.1
VicunaLlavaPrompt(VicunaLlavaPrompt)
ChatMLPrompt(ChatMLPrompt)
ChatMLToolPrompt(ChatMLToolPrompt)
InternLM2ToolPrompt(InternLM2ToolPrompt)
Baichuan2ChatPrompt(Baichuan2ChatPrompt)
WizardCoderPrompt(WizardCoderPrompt)
ZephyrChatPrompt(ZephyrChatPrompt)
StableLMZephyrChatPrompt(StableLMZephyrChatPrompt)
NeuralChatPrompt(NeuralChatPrompt)
DeepseekChatPrompt(DeepseekChatPrompt)
DeepseekCoderPrompt(DeepseekCoderPrompt)
DeepseekChat2Prompt(DeepseekChat2Prompt)
DeepseekChat25Prompt(DeepseekChat25Prompt)
SolarInstructPrompt(SolarInstructPrompt)
Phi2ChatPrompt(Phi2ChatPrompt)
Phi2InstructPrompt(Phi2InstructPrompt)
Phi3ChatPrompt(Phi3ChatPrompt)
Phi3InstructPrompt(Phi3InstructPrompt)
GemmaInstructPrompt(GemmaInstructPrompt)
OctopusPrompt(OctopusPrompt)
Glm4ChatPrompt(Glm4ChatPrompt)
GroqLlama3ToolPrompt(GroqLlama3ToolPrompt)
BreezeInstructPrompt(BreezeInstructPrompt)
Trait Implementations§
source§impl BuildChatPrompt for ChatPrompt
impl BuildChatPrompt for ChatPrompt
source§impl From<Baichuan2ChatPrompt> for ChatPrompt
impl From<Baichuan2ChatPrompt> for ChatPrompt
source§fn from(v: Baichuan2ChatPrompt) -> ChatPrompt
fn from(v: Baichuan2ChatPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<BreezeInstructPrompt> for ChatPrompt
impl From<BreezeInstructPrompt> for ChatPrompt
source§fn from(v: BreezeInstructPrompt) -> ChatPrompt
fn from(v: BreezeInstructPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<ChatMLPrompt> for ChatPrompt
impl From<ChatMLPrompt> for ChatPrompt
source§fn from(v: ChatMLPrompt) -> ChatPrompt
fn from(v: ChatMLPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<ChatMLToolPrompt> for ChatPrompt
impl From<ChatMLToolPrompt> for ChatPrompt
source§fn from(v: ChatMLToolPrompt) -> ChatPrompt
fn from(v: ChatMLToolPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<CodeLlamaInstructPrompt> for ChatPrompt
impl From<CodeLlamaInstructPrompt> for ChatPrompt
source§fn from(v: CodeLlamaInstructPrompt) -> ChatPrompt
fn from(v: CodeLlamaInstructPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<CodeLlamaSuperInstructPrompt> for ChatPrompt
impl From<CodeLlamaSuperInstructPrompt> for ChatPrompt
source§fn from(v: CodeLlamaSuperInstructPrompt) -> ChatPrompt
fn from(v: CodeLlamaSuperInstructPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<DeepseekChat25Prompt> for ChatPrompt
impl From<DeepseekChat25Prompt> for ChatPrompt
source§fn from(v: DeepseekChat25Prompt) -> ChatPrompt
fn from(v: DeepseekChat25Prompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<DeepseekChat2Prompt> for ChatPrompt
impl From<DeepseekChat2Prompt> for ChatPrompt
source§fn from(v: DeepseekChat2Prompt) -> ChatPrompt
fn from(v: DeepseekChat2Prompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<DeepseekChatPrompt> for ChatPrompt
impl From<DeepseekChatPrompt> for ChatPrompt
source§fn from(v: DeepseekChatPrompt) -> ChatPrompt
fn from(v: DeepseekChatPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<DeepseekCoderPrompt> for ChatPrompt
impl From<DeepseekCoderPrompt> for ChatPrompt
source§fn from(v: DeepseekCoderPrompt) -> ChatPrompt
fn from(v: DeepseekCoderPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<GemmaInstructPrompt> for ChatPrompt
impl From<GemmaInstructPrompt> for ChatPrompt
source§fn from(v: GemmaInstructPrompt) -> ChatPrompt
fn from(v: GemmaInstructPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<Glm4ChatPrompt> for ChatPrompt
impl From<Glm4ChatPrompt> for ChatPrompt
source§fn from(v: Glm4ChatPrompt) -> ChatPrompt
fn from(v: Glm4ChatPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<GroqLlama3ToolPrompt> for ChatPrompt
impl From<GroqLlama3ToolPrompt> for ChatPrompt
source§fn from(v: GroqLlama3ToolPrompt) -> ChatPrompt
fn from(v: GroqLlama3ToolPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<HumanAssistantChatPrompt> for ChatPrompt
impl From<HumanAssistantChatPrompt> for ChatPrompt
source§fn from(v: HumanAssistantChatPrompt) -> ChatPrompt
fn from(v: HumanAssistantChatPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<InternLM2ToolPrompt> for ChatPrompt
impl From<InternLM2ToolPrompt> for ChatPrompt
source§fn from(v: InternLM2ToolPrompt) -> ChatPrompt
fn from(v: InternLM2ToolPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<Llama2ChatPrompt> for ChatPrompt
impl From<Llama2ChatPrompt> for ChatPrompt
source§fn from(v: Llama2ChatPrompt) -> ChatPrompt
fn from(v: Llama2ChatPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<Llama3ChatPrompt> for ChatPrompt
impl From<Llama3ChatPrompt> for ChatPrompt
source§fn from(v: Llama3ChatPrompt) -> ChatPrompt
fn from(v: Llama3ChatPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<Llama3ToolPrompt> for ChatPrompt
impl From<Llama3ToolPrompt> for ChatPrompt
source§fn from(v: Llama3ToolPrompt) -> ChatPrompt
fn from(v: Llama3ToolPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<MistralInstructPrompt> for ChatPrompt
impl From<MistralInstructPrompt> for ChatPrompt
source§fn from(v: MistralInstructPrompt) -> ChatPrompt
fn from(v: MistralInstructPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<MistralLitePrompt> for ChatPrompt
impl From<MistralLitePrompt> for ChatPrompt
source§fn from(v: MistralLitePrompt) -> ChatPrompt
fn from(v: MistralLitePrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<MistralToolPrompt> for ChatPrompt
impl From<MistralToolPrompt> for ChatPrompt
source§fn from(v: MistralToolPrompt) -> ChatPrompt
fn from(v: MistralToolPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<NeuralChatPrompt> for ChatPrompt
impl From<NeuralChatPrompt> for ChatPrompt
source§fn from(v: NeuralChatPrompt) -> ChatPrompt
fn from(v: NeuralChatPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<OctopusPrompt> for ChatPrompt
impl From<OctopusPrompt> for ChatPrompt
source§fn from(v: OctopusPrompt) -> ChatPrompt
fn from(v: OctopusPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<OpenChatPrompt> for ChatPrompt
impl From<OpenChatPrompt> for ChatPrompt
source§fn from(v: OpenChatPrompt) -> ChatPrompt
fn from(v: OpenChatPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<Phi2ChatPrompt> for ChatPrompt
impl From<Phi2ChatPrompt> for ChatPrompt
source§fn from(v: Phi2ChatPrompt) -> ChatPrompt
fn from(v: Phi2ChatPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<Phi2InstructPrompt> for ChatPrompt
impl From<Phi2InstructPrompt> for ChatPrompt
source§fn from(v: Phi2InstructPrompt) -> ChatPrompt
fn from(v: Phi2InstructPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<Phi3ChatPrompt> for ChatPrompt
impl From<Phi3ChatPrompt> for ChatPrompt
source§fn from(v: Phi3ChatPrompt) -> ChatPrompt
fn from(v: Phi3ChatPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<Phi3InstructPrompt> for ChatPrompt
impl From<Phi3InstructPrompt> for ChatPrompt
source§fn from(v: Phi3InstructPrompt) -> ChatPrompt
fn from(v: Phi3InstructPrompt) -> ChatPrompt
Converts to this type from the input type.
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 From<SolarInstructPrompt> for ChatPrompt
impl From<SolarInstructPrompt> for ChatPrompt
source§fn from(v: SolarInstructPrompt) -> ChatPrompt
fn from(v: SolarInstructPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<StableLMZephyrChatPrompt> for ChatPrompt
impl From<StableLMZephyrChatPrompt> for ChatPrompt
source§fn from(v: StableLMZephyrChatPrompt) -> ChatPrompt
fn from(v: StableLMZephyrChatPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<Vicuna11ChatPrompt> for ChatPrompt
impl From<Vicuna11ChatPrompt> for ChatPrompt
source§fn from(v: Vicuna11ChatPrompt) -> ChatPrompt
fn from(v: Vicuna11ChatPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<VicunaChatPrompt> for ChatPrompt
impl From<VicunaChatPrompt> for ChatPrompt
source§fn from(v: VicunaChatPrompt) -> ChatPrompt
fn from(v: VicunaChatPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<VicunaLlavaPrompt> for ChatPrompt
impl From<VicunaLlavaPrompt> for ChatPrompt
source§fn from(v: VicunaLlavaPrompt) -> ChatPrompt
fn from(v: VicunaLlavaPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<WizardCoderPrompt> for ChatPrompt
impl From<WizardCoderPrompt> for ChatPrompt
source§fn from(v: WizardCoderPrompt) -> ChatPrompt
fn from(v: WizardCoderPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl From<ZephyrChatPrompt> for ChatPrompt
impl From<ZephyrChatPrompt> for ChatPrompt
source§fn from(v: ZephyrChatPrompt) -> ChatPrompt
fn from(v: ZephyrChatPrompt) -> ChatPrompt
Converts to this type from the input type.
source§impl TryInto<Baichuan2ChatPrompt> for ChatPrompt
impl TryInto<Baichuan2ChatPrompt> for ChatPrompt
source§impl TryInto<BreezeInstructPrompt> for ChatPrompt
impl TryInto<BreezeInstructPrompt> for ChatPrompt
source§impl TryInto<ChatMLPrompt> for ChatPrompt
impl TryInto<ChatMLPrompt> for ChatPrompt
source§impl TryInto<ChatMLToolPrompt> for ChatPrompt
impl TryInto<ChatMLToolPrompt> for ChatPrompt
source§impl TryInto<CodeLlamaInstructPrompt> for ChatPrompt
impl TryInto<CodeLlamaInstructPrompt> for ChatPrompt
source§impl TryInto<DeepseekChat25Prompt> for ChatPrompt
impl TryInto<DeepseekChat25Prompt> for ChatPrompt
source§impl TryInto<DeepseekChat2Prompt> for ChatPrompt
impl TryInto<DeepseekChat2Prompt> for ChatPrompt
source§impl TryInto<DeepseekChatPrompt> for ChatPrompt
impl TryInto<DeepseekChatPrompt> for ChatPrompt
source§impl TryInto<DeepseekCoderPrompt> for ChatPrompt
impl TryInto<DeepseekCoderPrompt> for ChatPrompt
source§impl TryInto<GemmaInstructPrompt> for ChatPrompt
impl TryInto<GemmaInstructPrompt> for ChatPrompt
source§impl TryInto<Glm4ChatPrompt> for ChatPrompt
impl TryInto<Glm4ChatPrompt> for ChatPrompt
source§impl TryInto<GroqLlama3ToolPrompt> for ChatPrompt
impl TryInto<GroqLlama3ToolPrompt> for ChatPrompt
source§impl TryInto<HumanAssistantChatPrompt> for ChatPrompt
impl TryInto<HumanAssistantChatPrompt> for ChatPrompt
source§impl TryInto<InternLM2ToolPrompt> for ChatPrompt
impl TryInto<InternLM2ToolPrompt> for ChatPrompt
source§impl TryInto<Llama2ChatPrompt> for ChatPrompt
impl TryInto<Llama2ChatPrompt> for ChatPrompt
source§impl TryInto<Llama3ChatPrompt> for ChatPrompt
impl TryInto<Llama3ChatPrompt> for ChatPrompt
source§impl TryInto<Llama3ToolPrompt> for ChatPrompt
impl TryInto<Llama3ToolPrompt> for ChatPrompt
source§impl TryInto<MistralInstructPrompt> for ChatPrompt
impl TryInto<MistralInstructPrompt> for ChatPrompt
source§impl TryInto<MistralLitePrompt> for ChatPrompt
impl TryInto<MistralLitePrompt> for ChatPrompt
source§impl TryInto<MistralToolPrompt> for ChatPrompt
impl TryInto<MistralToolPrompt> for ChatPrompt
source§impl TryInto<NeuralChatPrompt> for ChatPrompt
impl TryInto<NeuralChatPrompt> for ChatPrompt
source§impl TryInto<OctopusPrompt> for ChatPrompt
impl TryInto<OctopusPrompt> for ChatPrompt
source§impl TryInto<OpenChatPrompt> for ChatPrompt
impl TryInto<OpenChatPrompt> for ChatPrompt
source§impl TryInto<Phi2ChatPrompt> for ChatPrompt
impl TryInto<Phi2ChatPrompt> for ChatPrompt
source§impl TryInto<Phi2InstructPrompt> for ChatPrompt
impl TryInto<Phi2InstructPrompt> for ChatPrompt
source§impl TryInto<Phi3ChatPrompt> for ChatPrompt
impl TryInto<Phi3ChatPrompt> for ChatPrompt
source§impl TryInto<Phi3InstructPrompt> for ChatPrompt
impl TryInto<Phi3InstructPrompt> for ChatPrompt
source§impl TryInto<SolarInstructPrompt> for ChatPrompt
impl TryInto<SolarInstructPrompt> for ChatPrompt
source§impl TryInto<StableLMZephyrChatPrompt> for ChatPrompt
impl TryInto<StableLMZephyrChatPrompt> for ChatPrompt
source§impl TryInto<Vicuna11ChatPrompt> for ChatPrompt
impl TryInto<Vicuna11ChatPrompt> for ChatPrompt
source§impl TryInto<VicunaChatPrompt> for ChatPrompt
impl TryInto<VicunaChatPrompt> for ChatPrompt
source§impl TryInto<VicunaLlavaPrompt> for ChatPrompt
impl TryInto<VicunaLlavaPrompt> for ChatPrompt
source§impl TryInto<WizardCoderPrompt> for ChatPrompt
impl TryInto<WizardCoderPrompt> for ChatPrompt
source§impl TryInto<ZephyrChatPrompt> for ChatPrompt
impl TryInto<ZephyrChatPrompt> for ChatPrompt
Auto Trait Implementations§
impl Freeze for ChatPrompt
impl RefUnwindSafe for ChatPrompt
impl Send for ChatPrompt
impl Sync for ChatPrompt
impl Unpin for ChatPrompt
impl UnwindSafe for ChatPrompt
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> 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