UserSelectModelConfig
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| BaseModelConfig llmling_models_config.configs Base for model configurations. |
⋔ Inheritance diagram¶
graph TD
841624791["configs.UserSelectModelConfig"]
3497727833["configs.BaseModelConfig"]
330168112["schema.Schema"]
3879467795["main.BaseModel"]
2751680898["builtins.object"]
3497727833 --> 841624791
330168112 --> 3497727833
3879467795 --> 330168112
2751680898 --> 3879467795
🛈 DocStrings¶
Bases: BaseModelConfig
Configuration for interactive model selection.
Source code in src/llmling_models_config/configs.py
handler
class-attribute
instance-attribute
¶
handler: ImportString[Any] = Field(
default="llmling_models:DefaultInputHandler", validate_default=True, title="Selection handler"
)
Handler for processing user selection input.
input_prompt
class-attribute
instance-attribute
¶
input_prompt: str = Field(
default="Enter model number (0-{max}): ",
examples=["Enter model number (0-{max}): ", "Choose (0-{max}): "],
title="Selection input prompt",
)
Text displayed when requesting model selection.
models
class-attribute
instance-attribute
¶
models: list[ModelId | str | BaseModelConfig] = Field(
min_length=1,
title="Selectable models",
examples=[["openai:gpt-5-nano", "anthropic:claude-sonnet-4-5"]],
)
List of models the user can choose from.
prompt_template
class-attribute
instance-attribute
¶
prompt_template: str = Field(
default="🤖 Choose a model for: {prompt}",
examples=["🤖 Choose a model for: {prompt}", "Select model for: {prompt}"],
title="Selection prompt template",
)
Template for displaying the choice prompt to the user.
show_system
class-attribute
instance-attribute
¶
Whether to show system messages during selection.
type
class-attribute
instance-attribute
¶
Type identifier for user-select model.