DelegationModelConfig
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| BaseModelConfig llmling_models_config.configs Base for model configurations. |
⋔ Inheritance diagram¶
graph TD
3498049208["configs.DelegationModelConfig"]
3497727833["configs.BaseModelConfig"]
330168112["schema.Schema"]
3879467795["main.BaseModel"]
2751680898["builtins.object"]
3497727833 --> 3498049208
330168112 --> 3497727833
3879467795 --> 330168112
2751680898 --> 3879467795
🛈 DocStrings¶
Bases: BaseModelConfig
Configuration for delegation-based model selection.
Source code in src/llmling_models_config/configs.py
model_descriptions
class-attribute
instance-attribute
¶
model_descriptions: dict[str, str] | None = Field(
default=None,
title="Model descriptions",
examples=[
{
"openai:gpt-5-nano": "A small, fast model",
"anthropic:claude-sonnet-4-5": "A large, powerful model",
}
],
)
Optional descriptions of each model for selection purposes.
models
class-attribute
instance-attribute
¶
models: list[ModelId | str | BaseModelConfig] = Field(
min_length=1,
title="Available models",
examples=[["openai:gpt-5-nano", "anthropic:claude-sonnet-4-5"]],
)
List of available models to choose from.
selection_prompt
class-attribute
instance-attribute
¶
selection_prompt: str = Field(
examples=["Choose the best model for this task", "Select appropriate model"],
title="Selection prompt",
)
Prompt used to guide the selector model's decision.
selector_model
class-attribute
instance-attribute
¶
selector_model: ModelId | str | BaseModelConfig = Field(
examples=["openai:gpt-5-nano"], title="Selector model"
)
Model responsible for selecting which model to use.
type
class-attribute
instance-attribute
¶
Type identifier for delegation model.