Skip to content

trulens.feedback.output_schemas

trulens.feedback.output_schemas

Classes

BaseFeedbackResponse

Bases: BaseModel

A base model for feedback responses. It can be extended to include specific fields for different feedback types.

Note: The extra="forbid" config ensures that additionalProperties: false is included in the JSON schema, which is required by providers like Databricks for structured outputs.

ChainOfThoughtResponse

Bases: BaseModel

A model to represent the response from a Chain of Thought (COT) evaluation. It includes the criteria, supporting evidence, and score.

Note: The extra="forbid" config ensures that additionalProperties: false is included in the JSON schema, which is required by providers like Databricks for structured outputs.