CLIResource
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| BaseResource llmling.config.models Base class for all resource types. |
⋔ Inheritance diagram¶
graph TD
1256000812["models.CLIResource"]
1028592330["models.BaseResource"]
330168112["schema.Schema"]
3879467795["main.BaseModel"]
2751680898["builtins.object"]
1028592330 --> 1256000812
330168112 --> 1028592330
3879467795 --> 330168112
2751680898 --> 3879467795
🛈 DocStrings¶
Bases: BaseResource
Resource from CLI command execution.
Source code in src/llmling/config/models.py
command
instance-attribute
¶
Command to execute (string or sequence of arguments).
cwd
class-attribute
instance-attribute
¶
Working directory for command execution.
shell
class-attribute
instance-attribute
¶
Whether to run the command through a shell.
timeout
class-attribute
instance-attribute
¶
Maximum time in seconds to wait for command completion.
type
class-attribute
instance-attribute
¶
Discriminator field identifying this as a CLI-based resource.
validate_command
¶
validate_command() -> CLIResource
Validate command configuration.