Macros§
- fmt_
message fmt_messageis a utility macro used to create aMessageOrTemplate::Messagevariant.- fmt_
placeholder fmt_placeholderis a utility macro used to create aMessageOrTemplate::MessagesPlaceholdervariant.- fmt_
template fmt_templateis a utility macro used to create aMessageOrTemplate::Templatevariant.- message_
formatter - Example
- prompt_
args prompt_args!is a utility macro used for creating astd::collections::HashMap<String, serde_json::Value>. This HashMap can then be passed as arguments to a function or method.- template_
fstring template_fstringis a utility macro that creates a newPromptTemplatewith FString as the template format.- template_
jinja2 template_jinja2is a utility macro that creates a newPromptTemplatewith Jinja2 as the template format.
Structs§
- AIMessage
Prompt Template - Struct
AIMessagePromptTemplatedefines a template for creating AI (assistant) messages.PromptTemplateis used to generate the message template. - Human
Message Prompt Template - Struct
HumanMessagePromptTemplatedefines a template for creating human (user) messages.PromptTemplateis used to generate the message template. - Message
Formatter Struct - Prompt
Template - System
Message Prompt Template - Struct
SystemMessagePromptTemplatedefines a template for creating system-level messages.PromptTemplateis used to generate the message template.
Enums§
Traits§
- Format
Prompter - Message
Formatter - Represents a generic template for formatting messages.
- Prompt
Fromatter