Skip to content
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

Feature: Sequential and hierarchy tasks execution - Included STOP/PAUSE/RESUME features from anthonydevs17 #199

Open
wants to merge 27 commits into
base: workflows-v2
Choose a base branch
from

Conversation

ernestocarrasco
Copy link

  • Enhanced task and team store functionalities to support new task status updates and flow types.
  • Add workflow execution strategies (Sequential and Hierarchy) to handle different workflow types.
  • Removed the workflow controller as part of the task management refactor.
  • Include stop/pause/resume features
  • Added new ESLint rules to disable focused and disabled tests in Jest.
  • Updated Jest configuration to specify a test match pattern.
  • Introduced a new dependency, dependency-graph, in package.json and package-lock.json.

Related GH Issue: #153

anthonydevs17 and others added 27 commits January 3, 2025 22:51
- Added a 'Stop Workflow' button in AgentsBoardDebugger component.
- Introduced a stop method in the Team class to halt the workflow and update the state.
- Updated ReactChampionAgent to handle the STOPPED status during workflow execution.
- Enhanced workflowController to clear the task queue when the workflow is stopped.
… functionalities

- Added handlePauseResume and handleStop methods in AgentWithToolPreviewer for managing team workflow states.
- Introduced new buttons for pause/resume and stop actions in the UI, with appropriate disabling logic based on workflow status.
- Updated Team class to handle stopping workflows more robustly, including abort handling in ReactChampionAgent.
- Enhanced error handling for task abortion and logging for better debugging and user feedback.
- Introduced AbortError class to manage operation interruptions effectively.
- Adjusted the table formatting in README.md for the tools package to enhance clarity and consistency.
- Ensured proper alignment of tool descriptions and documentation links for improved user experience.
…esume, and stop methods

- Refactored Team class methods (pause, resume, stop) to utilize new workflow management functions directly from the store, improving code clarity and reducing redundancy.
- Updated ReactChampionAgent to track the last feedback message and handle task execution more effectively, including abort handling.
- Introduced new error classes (StopAbortError, PauseAbortError) for better error management during workflow interruptions.
- Enhanced task logging for aborted tasks, capturing relevant statistics and error details for improved debugging.
- Integrated workflow action enums to standardize workflow control actions across the application.
…edbackMessage fields

- Added `currentIterations` and `lastFeedbackMessage` fields to various agent instances across multiple test snapshots, enhancing the state tracking of agents during workflows.
- Ensured consistency in the agent configurations for improved testing accuracy and reliability.
- Updated snapshots for `customLLMs`, `llmProxy`, `outputSchemaTeam`, `productSpecTeam`, `resumeCreationTeam`, `sportNewsTeam`, and `tripPlanningTeam` to reflect these changes.
- Cleaned up the README.md by removing an unnecessary newline before the Compatibility section, improving the overall formatting and readability of the document.
…d refactor task management

- Added new ESLint rules to disable focused and disabled tests in Jest.
- Updated Jest configuration to specify a test match pattern.
- Introduced a new dependency, `dependency-graph`, in package.json and package-lock.json.
- Refactored task management in the application by adding a TaskManager for better task lifecycle handling.
- Enhanced task and team store functionalities to support new task status updates and flow types.
- Removed the workflow controller as part of the task management refactor.

Related GH Issue: kaiban-ai#153
…LMEnd method

- Eliminated the unnecessary check for PAUSED workflow status in the handleLLMEnd method of ReactChampionAgent, streamlining the task handling process.
- This change enhances the agent's responsiveness during task execution by allowing it to proceed without being blocked by the workflow status.
…status management

- Introduced a new `handleAgentTaskPaused` method to manage agent status when tasks are paused, improving workflow control during interruptions.
- Updated `handleTaskAborted` and `handleTaskPaused` methods to log task status changes and relevant error details, enhancing debugging capabilities.
- Refactored task status management to include a new PAUSED state for both agents and tasks, allowing for better tracking of workflow interruptions.
- Enhanced error handling in the workflow loop to ensure proper task management during pauses, improving overall system reliability.
- Updated taskSubscriber.js to include the PAUSED state in the subscribeTaskStatusUpdates function, enhancing task status management.
- This change aligns with recent enhancements to workflow control, allowing for better tracking of tasks during interruptions.
…orkflow' into 153-tasks-chaining-sequential-hierarchy
- Integrated ChatMessageHistory into agent instances for improved interaction tracking.
- Updated agent status management to reset interactions history and feedback upon workflow reset.
- Added functionality to start the task queue if paused, ensuring smoother workflow execution.
- Removed redundant clearAgentLoopState method from workflow loop store, streamlining state management.
- Improved overall task handling and agent responsiveness during workflow interruptions.
…arious workflows

- Enhanced snapshot files for `llmProxy`, `outputSchemaTeam`, `productSpecTeam`, `resumeCreationTeam`, `sportNewsTeam`, and `tripPlanningTeam` to include comprehensive `lastFeedbackMessage` fields.
- Updated messages to reflect specific tasks and expected outputs, improving clarity and context for each workflow scenario.
- Ensured consistency in agent configurations across multiple test snapshots, enhancing the accuracy of state tracking during workflows.
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.

2 participants