beam_search_reasoning
Optimize multi-step reasoning by maintaining top paths through beam search, enabling structured problem-solving and decision-making for complex queries.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
beamWidth | No | Number of top paths to maintain (n-sampling) | |
nextThoughtNeeded | Yes | Whether another step is needed | |
prompt | Yes | The problem or query to reason about | |
thought | Yes | Current reasoning step | |
thoughtNumber | Yes | Current step number | |
totalThoughts | Yes | Total expected steps |