Schemas¶
cogitator.schemas
¶
Defines Pydantic models for structured data exchange within Cogitator.
EvaluationResult
¶
Bases: BaseModel
Schema for the output of an evaluation step (e.g., in ToT, GoT).
Source code in cogitator/schemas.py
ExtractedAnswer
¶
Bases: BaseModel
Schema for the final extracted answer from a reasoning chain.
Source code in cogitator/schemas.py
LTMDecomposition
¶
Bases: BaseModel
Schema for the output of the Least-to-Most decomposition step.
Source code in cogitator/schemas.py
ThoughtExpansion
¶
Bases: BaseModel
Schema for the output of a thought expansion step (e.g., in ToT).
Source code in cogitator/schemas.py
Trace
¶
Bases: BaseModel
Represents the full execution trace of a reasoning strategy.
Source code in cogitator/schemas.py
add_node(node_id, parent_id, content, score=None, visits=None, metadata=None)
¶
Adds a new node to the trace.
Source code in cogitator/schemas.py
TraceNode
¶
Bases: BaseModel
Represents a single node in a reasoning trace for visualization or debugging.