SourceResource
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| BaseResource llmling.config.models Base class for all resource types. |
⋔ Inheritance diagram¶
graph TD
2910433429["models.SourceResource"]
1028592330["models.BaseResource"]
330168112["schema.Schema"]
3879467795["main.BaseModel"]
2751680898["builtins.object"]
1028592330 --> 2910433429
330168112 --> 1028592330
3879467795 --> 330168112
2751680898 --> 3879467795
🛈 DocStrings¶
Bases: BaseResource
Resource from Python source code.
Source code in src/llmling/config/models.py
import_path
instance-attribute
¶
Dotted import path to the Python module or object.
include_tests
class-attribute
instance-attribute
¶
Whether to include test files and directories.
recursive
class-attribute
instance-attribute
¶
Whether to include submodules recursively.
type
class-attribute
instance-attribute
¶
Discriminator field identifying this as a source code resource.
validate_import_path
¶
validate_import_path() -> SourceResource
Validate that the import path is properly formatted.