Module system_prompt

Module system_prompt 

Source
Expand description

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

By default, the system prompt is setup as a general-purpose chain-of-thought reasoning prompt with the role, guidelines, and constraints left empty for customization.

You can override the the template entirely by providing your own Prompt. Optionally, you can still use the builder values by referencing them in your template.

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