nat.data_models.temperature_mixin#

Classes#

TemperatureMixin

Mixin class for temperature configuration. Unsupported on models like gpt-5.

Module Contents#

class TemperatureMixin(/, **data: Any)#

Bases: pydantic.BaseModel, nat.data_models.gated_field_mixin.GatedFieldMixin

Mixin class for temperature configuration. Unsupported on models like gpt-5.

Attributes:

temperature: Sampling temperature in [0, 1]. Defaults to 0.0 when supported on the model.

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.

temperature: float | None = None#