MultiModel
Sub classes¶
| Name | Children | Inherits |
|---|---|---|
| DelegationMultiModel llmling_models.models.delegation Meta-model that dynamically selects models based on a user prompt. |
||
| UserSelectModel llmling_models.models.userselect Model that lets users interactively select from multiple models. |
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| Schema schemez.schema Base class for configuration models. |
||
| Model pydantic_ai.models Abstract class for a model. |
⋔ Inheritance diagram¶
graph TD
1941227503["multi.MultiModel"]
330168112["schema.Schema"]
3879467795["main.BaseModel"]
2751680898["builtins.object"]
956387754["models.Model"]
1457841118["_abstract.AbstractModel"]
925645236["abc.ABC"]
3481597255["typing.Generic"]
330168112 --> 1941227503
3879467795 --> 330168112
2751680898 --> 3879467795
956387754 --> 1941227503
1457841118 --> 956387754
925645236 --> 1457841118
2751680898 --> 925645236
3481597255 --> 956387754
2751680898 --> 3481597255
🛈 DocStrings¶
Bases: Schema, Model
Base for model configurations that combine multiple language models.
This provides the base interface for YAML-configurable multi-model setups, allowing configuration of multiple models through LLMling's config system.
Source code in src/llmling_models/models/multi.py
models
class-attribute
instance-attribute
¶
List of models to use.
initialize_models
¶
initialize_models() -> MultiModel
Convert string model names to Model instances.