Config
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| ConfigModel llmling.config.base Base class for all LLMling configuration models. |
⋔ Inheritance diagram¶
graph TD
2020472667["models.Config"]
2455074328["base.ConfigModel"]
330168112["schema.Schema"]
3879467795["main.BaseModel"]
2751680898["builtins.object"]
2455074328 --> 2020472667
330168112 --> 2455074328
3879467795 --> 330168112
2751680898 --> 3879467795
🛈 DocStrings¶
Bases: ConfigModel
Root configuration model.
Source code in src/llmling/config/models.py
571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 | |
context_processors
class-attribute
instance-attribute
¶
context_processors: dict[str, ProcessorConfig] = Field(default_factory=dict)
Content processors available for resource transformation.
global_settings
class-attribute
instance-attribute
¶
global_settings: GlobalSettings = Field(default_factory=GlobalSettings)
Global settings that apply to all components.
prompts
class-attribute
instance-attribute
¶
Prompt definitions keyed by name.
resource_groups
class-attribute
instance-attribute
¶
Groups of resources for logical organization.
resources
class-attribute
instance-attribute
¶
Resource definitions keyed by name.
tools
class-attribute
instance-attribute
¶
tools: dict[str, ToolConfig] = Field(default_factory=dict)
Tool definitions keyed by name.
toolsets
class-attribute
instance-attribute
¶
Toolset configurations for extensible tool collections.
version
class-attribute
instance-attribute
¶
Version string for this configuration format.
from_file
classmethod
¶
Load configuration from YAML file.
This function only handles the basic loading and model validation. For full validation and management, use ConfigManager.load() instead.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
JoinablePathLike
|
Path to configuration file |
required |
Returns:
| Type | Description |
|---|---|
Self
|
Loaded configuration |
Raises:
| Type | Description |
|---|---|
ConfigError
|
If loading fails |
Source code in src/llmling/config/models.py
validate_references
¶
validate_references() -> Config
Validate all references between components.