Module prompt

Module prompt 

Source
Expand description

A trait and macros for powerful, type-safe prompt generation.

Enums§

PromptPart
Represents a part of a multimodal prompt.
PromptSetError

Traits§

ToPrompt
A trait for converting any type into a string suitable for an LLM prompt.
ToPromptFor
A trait for generating a prompt for a specific target type.
ToPromptSet
A trait for types that can generate multiple named prompt targets.

Functions§

render_prompt
Renders a prompt from a template string and a serializable context.