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

Feat/sequence task workforce #2055

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

nitpicker55555
Copy link
Collaborator

@nitpicker55555 nitpicker55555 commented Mar 30, 2025

Description

Support for processing a sequence of tasks in the Workforce, where each task can share context (e.g., results, memory) with others.

  • Added process_task_sequence and process_task_sequence_async methods to Workforce
  • Introduced shared_context and shared_channel to persist information across tasks
  • Each task's result is stored in shared_context with the pattern task_{task.id}
  • Compatible with current single-task flow; does not affect process_task

This addresses collaborative task execution as proposed in Issue #1832.

Checklist

  • I have read the CONTRIBUTION guide (required)
  • I have linked this PR to an issue using the Development section or Fixes #1832 (required)
  • I have checked if any dependencies need to be added or updated in pyproject.toml and uv lock
  • I have updated the tests accordingly (required for a bug fix or a new feature)
  • I have updated the documentation if needed
  • I have added examples if this is a new feature

"technology used, innovation, and potential impact."
),
),
Task(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add some comments on these?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like step by step run all task ....

@zjrwtx
Copy link
Collaborator

zjrwtx commented Mar 31, 2025

thanks @nitpicker55555 ,left some comment

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