Expand description
Chain-of-thought prompting with structured scratchpad and step decomposition.
Provides CotPromptBuilder to construct prompts that elicit step-by-step
reasoning, and CotParser to extract structured ThoughtSteps from
model responses.
Structs§
- Chain
OfThought - A complete chain-of-thought response with all steps and a final answer.
- CotParser
- Parses chain-of-thought responses into structured
ThoughtSteps. - CotPrompt
Builder - Builds prompts that elicit chain-of-thought reasoning.
- Thought
Step - A single reasoning step extracted from a chain-of-thought response.
Enums§
- CotStrategy
- Strategy used to construct the chain-of-thought prompt.