Skip to content

Support for both Tree of Thought (ToT) and Chain of Thought (CoT) #1454

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vishwamartur
Copy link

Related to #71

Add support for Tree of Thought (ToT) in various classes and methods to handle both CoT and ToT workflows.

  • AgentIterationStepHandler:

    • Add support for ToT in the AgentIterationStepHandler class.
    • Modify the execute_step method to handle both CoT and ToT.
    • Update the _build_agent_prompt method to support branching logic for ToT.
  • AgentLlmMessageBuilder:

    • Add support for ToT in the AgentLlmMessageBuilder class.
    • Modify the build_agent_messages method to handle both CoT and ToT.
    • Update the _split_history method to support branching logic for ToT.
  • AgentPromptBuilder:

    • Add support for ToT in the AgentPromptBuilder class.
    • Modify the replace_main_variables method to handle both CoT and ToT.
    • Update the replace_task_based_variables method to support branching logic for ToT.
  • TaskQueue:

    • Add methods to handle branching tasks for ToT in the TaskQueue class.
  • QueueStepHandler:

    • Add support for ToT in the QueueStepHandler class.
  • AgentWorkflowSeed:

    • Add methods to build workflows for ToT in the AgentWorkflowSeed class.
  • AgentToolStepHandler:

    • Add support for ToT in the AgentToolStepHandler class.
    • Modify the execute_step method to handle both CoT and ToT.
  • IterationWorkflow:

    • Add support for ToT in the IterationWorkflow class.
  • IterationWorkflowStep:

    • Add support for ToT in the IterationWorkflowStep class.
    • Modify the find_or_create_step method to handle both CoT and ToT.
  • ThinkingTool:

    • Add support for ToT in the ThinkingTool class.
    • Modify the _execute method to handle both CoT and ToT.

Related to TransformerOptimus#71

Add support for Tree of Thought (ToT) in various classes and methods to handle both CoT and ToT workflows.

* **AgentIterationStepHandler**:
  - Add support for ToT in the `AgentIterationStepHandler` class.
  - Modify the `execute_step` method to handle both CoT and ToT.
  - Update the `_build_agent_prompt` method to support branching logic for ToT.

* **AgentLlmMessageBuilder**:
  - Add support for ToT in the `AgentLlmMessageBuilder` class.
  - Modify the `build_agent_messages` method to handle both CoT and ToT.
  - Update the `_split_history` method to support branching logic for ToT.

* **AgentPromptBuilder**:
  - Add support for ToT in the `AgentPromptBuilder` class.
  - Modify the `replace_main_variables` method to handle both CoT and ToT.
  - Update the `replace_task_based_variables` method to support branching logic for ToT.

* **TaskQueue**:
  - Add methods to handle branching tasks for ToT in the `TaskQueue` class.

* **QueueStepHandler**:
  - Add support for ToT in the `QueueStepHandler` class.

* **AgentWorkflowSeed**:
  - Add methods to build workflows for ToT in the `AgentWorkflowSeed` class.

* **AgentToolStepHandler**:
  - Add support for ToT in the `AgentToolStepHandler` class.
  - Modify the `execute_step` method to handle both CoT and ToT.

* **IterationWorkflow**:
  - Add support for ToT in the `IterationWorkflow` class.

* **IterationWorkflowStep**:
  - Add support for ToT in the `IterationWorkflowStep` class.
  - Modify the `find_or_create_step` method to handle both CoT and ToT.

* **ThinkingTool**:
  - Add support for ToT in the `ThinkingTool` class.
  - Modify the `_execute` method to handle both CoT and ToT.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant