Skip to content

Workflow strategy - #237

Open
anthonydevs17 wants to merge 16 commits into
kaiban-ai:mainfrom
anthonydevs17:workflow-strategy
Open

Workflow strategy#237
anthonydevs17 wants to merge 16 commits into
kaiban-ai:mainfrom
anthonydevs17:workflow-strategy

Conversation

@anthonydevs17

Copy link
Copy Markdown
Collaborator

No description provided.

- 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.
- 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.
- 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.
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