toolsets
Class info¶
Classes¶
Name | Children | Inherits |
---|---|---|
BaseToolsetConfig llmling_agent.models.toolsets Base configuration for toolsets. |
||
CustomToolsetConfig llmling_agent.models.toolsets Configuration for custom toolsets. |
||
EntryPointToolsetConfig llmling_agent.models.toolsets Configuration for entry point toolsets. |
||
OpenAPIToolsetConfig llmling_agent.models.toolsets Configuration for OpenAPI toolsets. |
||
ResourceProvider llmling_agent.resource_providers.base Base class for resource providers. |
🛈 DocStrings¶
Models for tools.
BaseToolsetConfig
¶
Bases: ConfigModel
Base configuration for toolsets.
Source code in src/llmling_agent/models/toolsets.py
15 16 17 18 19 |
|
CustomToolsetConfig
¶
Bases: BaseToolsetConfig
Configuration for custom toolsets.
Source code in src/llmling_agent/models/toolsets.py
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
|
import_path
class-attribute
instance-attribute
¶
import_path: str = Field(...)
Dotted import path to the custom toolset implementation class.
type
class-attribute
instance-attribute
¶
type: Literal['custom'] = Field('custom', init=False)
Discriminator field identifying this as a custom toolset.
get_provider
¶
get_provider() -> ResourceProvider
Create custom provider from import path.
Source code in src/llmling_agent/models/toolsets.py
80 81 82 83 84 85 86 87 88 |
|
EntryPointToolsetConfig
¶
Bases: BaseToolsetConfig
Configuration for entry point toolsets.
Source code in src/llmling_agent/models/toolsets.py
41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
|
module
class-attribute
instance-attribute
¶
module: str = Field(..., description='Python module path')
Python module path to load tools from via entry points.
type
class-attribute
instance-attribute
¶
type: Literal['entry_points'] = Field('entry_points', init=False)
Discriminator field identifying this as an entry point toolset.
get_provider
¶
get_provider() -> ResourceProvider
Create entry point tools provider from this config.
Source code in src/llmling_agent/models/toolsets.py
50 51 52 53 54 |
|
OpenAPIToolsetConfig
¶
Bases: BaseToolsetConfig
Configuration for OpenAPI toolsets.
Source code in src/llmling_agent/models/toolsets.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
|
base_url
class-attribute
instance-attribute
¶
base_url: str | None = Field(default=None)
Optional base URL for API requests, overrides the one in spec.
spec
class-attribute
instance-attribute
¶
spec: str = Field(...)
URL or path to the OpenAPI specification document.
type
class-attribute
instance-attribute
¶
type: Literal['openapi'] = Field('openapi', init=False)
Discriminator field identifying this as an OpenAPI toolset.
get_provider
¶
get_provider() -> ResourceProvider
Create OpenAPI tools provider from this config.
Source code in src/llmling_agent/models/toolsets.py
34 35 36 37 38 |
|