langchain.chains.constitutional_ai.models.ConstitutionalPrinciple

class langchain.chains.constitutional_ai.models.ConstitutionalPrinciple[source]

Bases: BaseModel

Class for a constitutional principle.

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 critique_request: str [Required]
param name: str = 'Constitutional Principle'
param revision_request: str [Required]