feat: Adapt eigent Workforce to CAMEL's plan-then-run API#1530
Open
fengju0213 wants to merge 1 commit intomainfrom
Open
feat: Adapt eigent Workforce to CAMEL's plan-then-run API#1530fengju0213 wants to merge 1 commit intomainfrom
fengju0213 wants to merge 1 commit intomainfrom
Conversation
Collaborator
Author
|
pending: camel-ai/camel#3979 |
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.
Adapt eigent Workforce to CAMEL's plan-then-run API with a thin local planning adapter
Summary
Replace eigent's duplicated orchestration core with CAMEL's new
plan_task_async()/run_plan_async()APIs, while keeping eigent-specific planning context injection as a thin local adapter. This removes most of the manual queueing/sync logic without pushing product-specific semantics upstream into CAMEL.Changes
backend/app/utils/workforce.pyplan_task_async()/run_plan_async()_sync_subtask_to_parentlogic_sync_task_to_parentbehaviorhandle_decompose_append_taskoverrideBackward compatible:
eigent_make_sub_tasks()still returnslist[Task]and stores the latestWorkforcePlaninternallyeigent_start()still accepts bothWorkforcePlanand editedlist[Task]Why this split
What CAMEL now owns:
What eigent continues to own:
This keeps CAMEL minimal and reusable, while still letting eigent delete most of its duplicated workflow code.