-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat: sequence task workforce #2055
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
base: master
Are you sure you want to change the base?
Conversation
…picker55555/camel into feat/sequence-task-workforce update
"technology used, innovation, and potential impact." | ||
), | ||
), | ||
Task( |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 ....
thanks @nitpicker55555 ,left some comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nitpicker55555 for the contribution, and apologies for the delayed review comment.
The current implementation appears to process a sequence of top-level tasks within the workforce, rather than allowing for a pre-defined, fixed sequence of subtasks for a single overarching goal. As it stands, each task in the sequence is still subject to the workforce's internal decomposition process.
The user's requirement, as I understand it, is to support a scenario where subtasks are explicitly defined and executed in a specific order without further decomposition by the workforce. This would give more direct control over the execution flow.
Maybe allowing the Task to specify which worker node should handle it could offer more granular control. Happy to discuss this further
Description
Support for processing a sequence of tasks in the
Workforce
, where each task can share context (e.g., results, memory) with others.process_task_sequence
andprocess_task_sequence_async
methods toWorkforce
shared_context
andshared_channel
to persist information across tasksshared_context
with the patterntask_{task.id}
process_task
This addresses collaborative task execution as proposed in Issue #1832.
Checklist
Fixes #1832
(required)pyproject.toml
anduv lock