InterventionModel#

class langchain_experimental.cpal.models.InterventionModel[source]#

Bases: BaseModel

Intervention data of the story aka initial conditions.

>>> intervention.dict()
{
    entity_settings: [
        {"name": "bud", "attribute": "pet_count", "value": 12},
        {"name": "pat", "attribute": "pet_count", "value": 0},
    ],
    system_settings: None,
}

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.

param entity_settings: List[EntitySettingModel] [Required]#
param system_settings: List[SystemSettingModel] | None = None#