Skip to content

PrePostPromptConfig

Base classes

Name Children Inherits
Schema
schemez.schema
Base class for configuration models.

⋔ Inheritance diagram

graph TD
  1881432932["configs.PrePostPromptConfig"]
  330168112["schema.Schema"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  330168112 --> 1881432932
  3879467795 --> 330168112
  2751680898 --> 3879467795

🛈 DocStrings

Bases: Schema

Configuration for pre/post prompts.

Source code in src/llmling_models_config/configs.py
class PrePostPromptConfig(Schema):
    """Configuration for pre/post prompts."""

    model_config = ConfigDict(json_schema_extra={"x-doc-title": "Pre/post prompt"})

    text: str = Field(
        examples=["You are a helpful assistant", "Process this carefully"],
        title="Prompt text",
    )
    """The prompt text to be applied."""

    model: ModelId | BaseModelConfig | str = Field(
        examples=[["openai:gpt-5-nano", "anthropic:claude-sonnet-4-5"]],
        title="Model identifier",
    )
    """The model to use for processing the prompt."""

model class-attribute instance-attribute

model: ModelId | BaseModelConfig | str = Field(
    examples=[["openai:gpt-5-nano", "anthropic:claude-sonnet-4-5"]], title="Model identifier"
)

The model to use for processing the prompt.

text class-attribute instance-attribute

text: str = Field(
    examples=["You are a helpful assistant", "Process this carefully"], title="Prompt text"
)

The prompt text to be applied.

:fa-brands-github: Show source on GitHub