Skip to content

pydantic_ai.models.wrapper

WrapperModel

Bases: Model

Model which wraps another model.

Does nothing on its own, used as a base class.

Attributes

wrapped

The underlying model being wrapped.

Type: Model Default: infer_model(wrapped)

settings

Get the settings from the wrapped model.

Type: ModelSettings | None