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.
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.