Skip to content

OpenAPIToolsetConfig

Base classes

Name Children Inherits
BaseToolsetConfig
llmling.config.models
Base configuration for toolsets.

⋔ Inheritance diagram

graph TD
  3637829691["models.OpenAPIToolsetConfig"]
  376452731["models.BaseToolsetConfig"]
  2455074328["base.ConfigModel"]
  330168112["schema.Schema"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  376452731 --> 3637829691
  2455074328 --> 376452731
  330168112 --> 2455074328
  3879467795 --> 330168112
  2751680898 --> 3879467795

🛈 DocStrings

Bases: BaseToolsetConfig

Configuration for OpenAPI toolsets.

Source code in src/llmling/config/models.py
class OpenAPIToolsetConfig(BaseToolsetConfig):
    """Configuration for OpenAPI toolsets."""

    type: Literal["openapi"] = Field("openapi", init=False)
    """Discriminator field identifying this as an OpenAPI toolset."""

    spec: str = Field(...)
    """URL or path to the OpenAPI specification document."""

    base_url: str | None = Field(default=None)
    """Optional base URL for API requests, overrides the one in spec."""

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.

:fa-brands-github: Show source on GitHub