aviz85 / aviz-bot

A comprehensive solution for creating, deploying, and maintaining chatbots across various platforms.
0 stars 0 forks source link

Implement State Machine Framework for Multi-Agent Chatbot #4

Open mentatbot[bot] opened 4 days ago

mentatbot[bot] commented 4 days ago

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:

  1. Agent Class: Added to encapsulate each agent's properties and methods.
  2. StateMachine Class: Modified to handle agents instead of nodes.
  3. TreeBuilder Class: Updated to build agents and their conditions.
  4. 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.

Closes #3