pynydus.llm.models

Pydantic models for LLM configuration.

Module Contents

Classes

LLMTierConfig

LLM provider, model, and API key for refinement (spawn and hatch).

API

class pynydus.llm.models.LLMTierConfig(/, **data: typing.Any)

Bases: pydantic.BaseModel

LLM provider, model, and API key for refinement (spawn and hatch).

All fields are mandatory. There are no defaults: the caller must explicitly provide provider, model, and api_key.

Initialization

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

provider: str

None

Vendor name: “anthropic”, “openai”, “mistral”, etc.

model: str

None

Model identifier: “claude-haiku-4-5-20251001”, “gpt-4o”, etc.

api_key: str

None

API key for this provider.