fmt_message
is a utility macro used to create a MessageOrTemplate::Message
variant.
fmt_placeholder
is a utility macro used to create a MessageOrTemplate::MessagesPlaceholder
variant.
fmt_template
is a utility macro used to create a MessageOrTemplate::Template
variant.
Example
prompt_args!
is a utility macro used for creating a std::collections::HashMap<String, serde_json::Value>
.
This HashMap can then be passed as arguments to a function or method.
template_fstring
is a utility macro that creates a new PromptTemplate
with FString as the template format.
template_jinja2
is a utility macro that creates a new PromptTemplate
with Jinja2 as the template format.