pdstools.infinity.resources.prediction_studio.base

Classes

ModelInstance

Behaviour wrapper around a ModelInstanceData payload.

AsyncModelInstance

Behaviour wrapper around a ModelInstanceData payload.

Module Contents

class ModelInstance(client, **payload)

Bases: _ModelInstanceMixin, pdstools.infinity.internal._resource.SyncAPIResource

Behaviour wrapper around a ModelInstanceData payload.

The raw API payload is validated into self._data (a Pydantic model). Attribute reads fall through to _data via __getattr__, so instance.instance_id etc. keep working, while _public_dict / _public_fields are sourced from _data so the return_df=True code paths (list_instances) produce a stable, fully-populated schema.

class AsyncModelInstance(client, **payload)

Bases: _ModelInstanceMixin, pdstools.infinity.internal._resource.AsyncAPIResource

Behaviour wrapper around a ModelInstanceData payload.

The raw API payload is validated into self._data (a Pydantic model). Attribute reads fall through to _data via __getattr__, so instance.instance_id etc. keep working, while _public_dict / _public_fields are sourced from _data so the return_df=True code paths (list_instances) produce a stable, fully-populated schema.