Workflow strategy - #237
Open
anthonydevs17 wants to merge 16 commits into
Open
Conversation
- Added new dependencies for @langchain/community, @langchain/core, and @langchain/openai in package.json. - Introduced a new example for agent workflows in spagettis-agents-cue.ts, demonstrating search and summarization capabilities. - Refactored CueExecutionEngine to streamline parameter handling and improve code clarity. - Updated TypeScript configuration to prevent emitting output files during development. - Removed unused imports to clean up the codebase.
…kflow-strategy
- Added the p-queue package to package.json for improved task management. - Updated tsconfig.json to include legacy workflow files in the compilation process. - Removed the execution-engine.ts file as part of the refactor to streamline the workflow execution process.
- Updated the Workflow class to simplify the type definitions for runs by removing the TSteps generic parameter from the Run type. - Deleted several example files to clean up the codebase, including commit-and-run-example.ts, complex-cue-with-timeout.ts, migration-example.ts, nested-parallels.ts, queue-execution-example.ts, runTest.ts, and spagettis-agents-cue.ts. - Adjusted imports in spagettis-agents-cue.ts to use the new createWorkflow and createStep functions.
- Adjusted the initialization of the steps property in the Workflow class to ensure it defaults to an empty object. - Commented out the steps property in the WorkflowConfig type to clarify its optional nature.
- Removed the TSteps generic parameter from the WorkflowConfig type in the Workflow class and createWorkflow function to simplify type definitions. - Updated related type definitions to maintain consistency across the workflow implementation.
- Updated package.json to include a new demo script for snapshot examples and changed the development script to point to a different example file. - Revised the README.md to provide a more comprehensive overview of the workflow engine, highlighting new features such as real-time streaming, state management, and nested workflows. - Removed the deprecated helpers.ts file and integrated its functionality directly into the workflow implementation. - Improved type definitions and event handling in run.ts and runExecutionEngineWithQueue.ts to support enhanced workflow state management and event emission. - Deleted legacy files and examples to streamline the codebase and improve maintainability.
- Renamed and updated the import path for RunExecutionEngineWithQueue to use the new executionEngineWithQueue file. - Removed the deprecated runExecutionEngine and runExecutionEngineWithQueue files to streamline the codebase. - Updated related references in run.ts and index.ts to reflect the new import structure. - Deleted the run.test.ts file to clean up the test suite as part of the refactor.
- Upgraded @langchain/core to version ^0.3.65 and added @langchain/xai as a new dependency. - Updated package-lock.json to reflect changes in dependency versions and added new packages for workflow management. - Refactored execution engine to improve type handling and ensure proper status checks for workflow execution. - Enhanced agent initialization to support new WorkflowDrivenAgent and updated related imports across the codebase.
…kflow-strategy
- Changed the dependency from "workflow" to "@kaibanjs/workflow" in package.json for better modularity. - Updated package-lock.json to reflect the new dependency structure and added missing dependencies. - Adjusted the p-queue version in workflow package to ensure compatibility. - Enhanced type handling in WorkflowDrivenAgent and related classes for improved type safety. - Removed unused imports and cleaned up the codebase for better maintainability.
- Reintroduced and updated tests for the workOnTask method, ensuring successful execution of workflows. - Added error handling tests for workflows, verifying proper failure responses and agent state management. - Implemented tests for workOnTaskResume, checking error handling when no active run exists and when workflows are not suspended. - Cleaned up commented-out code for better readability and maintainability.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.