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 Request] - Support for task chaining and multi-agent conversations with shared memory #153

Open
dannleft opened this issue Nov 18, 2024 · 0 comments
Labels
core Fundamental operations and essential features of AgenticJS feature New feature or request feedback discord library Issues and enhancements directly related to the codebase of the library component of the project. multi-agent-coordination

Comments

@dannleft
Copy link
Collaborator

Description

Is your feature request related to a problem? Please describe.
Currently, there is no clear or documented way to:

  1. Chain outputs and inputs when tasks depend on the results of other tasks, including parallel task flows.
  2. Set up multi-agent interactions where agents share a memory of their interactions to provide context for subsequent tasks.

This makes it challenging to create complex workflows or conversational agents that rely on shared context or parallel task resolution.

Describe the solution you'd like
I would like KaibanJS to provide:

  1. A formalized mechanism for defining task dependencies, including chaining outputs as inputs and handling tasks running in parallel.
  2. Support for multi-agent interactions where:
    • Agents can exchange information in a 'ping-pong' conversational flow.
    • A shared memory or state manager allows agents to retain and access the entire sequence of conversations as context for further processing.
  3. Clear examples and documentation for these features.

Describe alternatives you've considered

  • Manually managing task dependencies and outputs outside KaibanJS, which introduces complexity and reduces the efficiency of the framework.
  • Using an external state management tool to handle shared memory for agents, which requires significant integration effort.

Additional context
This feature would enable developers to create advanced use cases like:

  • Complex task workflows where outputs dynamically feed into other tasks.
  • Multi-agent simulations where agents collaboratively solve problems or reach agreements.
  • Real-world AI applications like collaborative bots or automated negotiation systems.
@dannleft dannleft added feature New feature or request feedback discord labels Nov 18, 2024
@darielnoel darielnoel added library Issues and enhancements directly related to the codebase of the library component of the project. core Fundamental operations and essential features of AgenticJS labels Dec 6, 2024
ernestocarrasco added a commit to ernestocarrasco/KaibanJS that referenced this issue Jan 15, 2025
…emove Jest config and workflow controller

- Updated Babel preset to target the current Node version.
- Added ESLint rule to disable focused tests in Jest.
- Removed obsolete Jest configuration file.
- Updated package dependencies, including Babel and added new dependencies: `dependency-graph` and `fastq`.
- Added a new CLI command for refreshing the project environment.
- Refactored task management in the application by introducing a TaskManager and subscribing to task and workflow status updates.
- Removed the workflow controller to streamline task management.
- Enhanced agent utility functions with a new cloning mechanism for agents.

Related GH Issue: kaiban-ai#153
ernestocarrasco added a commit to ernestocarrasco/KaibanJS that referenced this issue Jan 15, 2025
- Added 'dependsOn' property to the Task class to manage task dependencies.
- Updated HierarchyExecutionStrategy and SequentialExecutionStrategy to validate 'changedTasks' as an array before processing.
- Introduced '_updateStatusOfMultipleTasks' method in WorkflowExecutionStrategy for batch status updates.
- Implemented 'updateStatusOfMultipleTasks' in teamStore to handle multiple task status updates efficiently.

Related GH Issue: kaiban-ai#153
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Fundamental operations and essential features of AgenticJS feature New feature or request feedback discord library Issues and enhancements directly related to the codebase of the library component of the project. multi-agent-coordination
Projects
None yet
Development

No branches or pull requests

2 participants