Skip to content

SystemPrompt

Base classes

Name Children Inherits
BaseModel
pydantic.main
Usage docs: https://docs.pydantic.dev/2.10/concepts/models/

⋔ Inheritance diagram

graph TD
  94350421432800["prompts.SystemPrompt"]
  94350366564672["main.BaseModel"]
  140709601677504["builtins.object"]
  94350366564672 --> 94350421432800
  140709601677504 --> 94350366564672

🛈 DocStrings

Bases: BaseModel

System prompt configuration for agent behavior control.

Defines prompts that set up the agent's behavior and context. Supports multiple types: - Static text prompts - Dynamic function-based prompts - Template prompts with variable substitution

Source code in src/llmling_agent/models/prompts.py
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
class SystemPrompt(BaseModel):
    """System prompt configuration for agent behavior control.

    Defines prompts that set up the agent's behavior and context.
    Supports multiple types:
    - Static text prompts
    - Dynamic function-based prompts
    - Template prompts with variable substitution
    """

    type: Literal["text", "function", "template"]
    """Type of system prompt: static text, function call, or template"""

    value: str
    """The prompt text, function path, or template string"""

    model_config = ConfigDict(frozen=True, use_attribute_docstrings=True)

type instance-attribute

type: Literal['text', 'function', 'template']

Type of system prompt: static text, function call, or template

value instance-attribute

value: str

The prompt text, function path, or template string

Show source on GitHub