Functions
tot
Function: tot()
tot(
opts):Runner<{message:string; },string>
Defined in: src/patterns/ToT.ts:57
Build a ToT Runner. At run time:
- Seed — treat the input message as the initial frontier of 1 thought.
- For each of
depthiterations: a. Parallel fan-out: generatebranchingFactornew thoughts. b. Score all new thoughts, keep topbeamWidth, pass to next iteration. - Return the single best-scoring thought from the final frontier.
Parameters
opts
Returns
Runner<{ message: string; }, string>
