Schemas for Structured Data¶
This module defines Pydantic models used for structuring and validating intermediate and final outputs from LLMs.
cogitator.schemas.LTMDecomposition
¶
Bases: BaseModel
Schema for the output of the Least-to-Most decomposition step.
Source code in cogitator/schemas.py
cogitator.schemas.ThoughtExpansion
¶
Bases: BaseModel
Schema for the output of a thought expansion step (e.g., in ToT).
Source code in cogitator/schemas.py
cogitator.schemas.EvaluationResult
¶
Bases: BaseModel
Schema for the output of an evaluation step (e.g., in ToT, GoT).
Source code in cogitator/schemas.py
cogitator.schemas.ExtractedAnswer
¶
Bases: BaseModel
Schema for the final extracted answer from a reasoning chain.