Module system_prompt

Source
Expand description

The system prompt is the initial role and constraint defining message the LLM will receive for completion.

The builder provides an accessible way to build a system prompt.

The agent will convert the system prompt into a prompt, adding it to the messages list the first time it is called.

For customization, either the builder can be used to profit from defaults, or an override can be provided on the agent level.

Structs§

SystemPrompt
SystemPromptBuilder
Builder for SystemPrompt.

Enums§

SystemPromptBuilderError
Error type for SystemPromptBuilder