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 if the input data cannot be parsed to form a valid model.

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