Source code for langchain.chains.constitutional_ai.models

"""Models for the Constitutional AI chain."""

from pydantic import BaseModel


[docs] class ConstitutionalPrinciple(BaseModel): """Class for a constitutional principle.""" critique_request: str revision_request: str name: str = "Constitutional Principle"