This pull request introduces a state machine framework to manage multiple agents, each with its own LLM, system prompt, goal, conditions, and tools. The changes include:
Agent Class: Added to encapsulate each agent's properties and methods.
StateMachine Class: Modified to handle agents instead of nodes.
TreeBuilder Class: Updated to build agents and their conditions.
Scenarios JSON: Refactored to define agents and their transitions based on conditions.
This implementation allows for dynamic transitions between agents based on predefined conditions, enabling more complex and flexible chatbot scenarios.
This pull request introduces a state machine framework to manage multiple agents, each with its own LLM, system prompt, goal, conditions, and tools. The changes include:
This implementation allows for dynamic transitions between agents based on predefined conditions, enabling more complex and flexible chatbot scenarios.
Closes #3