ToTController#

class langchain_experimental.tot.controller.ToTController(c: int = 3)[source]#

Tree of Thought (ToT) controller.

This is a version of a ToT controller, dubbed in the paper as a “Simple Controller”.

It has one parameter c which is the number of children to explore for each thought.

Initialize the controller.

Parameters:

c (int) – The number of children to explore at each node.

Methods

__init__([c])

Initialize the controller.

__init__(c: int = 3)[source]#

Initialize the controller.

Parameters:

c (int) – The number of children to explore at each node.