Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

Auto-update documentation after merge

camel-docs-bot6c869697a212
diff --git a/docs/mintlify/reference/camel.societies.workforce.utils.mdx b/docs/mintlify/reference/camel.societies.workforce.utils.mdx
index c52882d96..6a57697f6 100644
--- a/docs/mintlify/reference/camel.societies.workforce.utils.mdx
+++ b/docs/mintlify/reference/camel.societies.workforce.utils.mdx
@@ -20,6 +20,16 @@ class TaskResult(BaseModel):
The result of a task.
+<a id="camel.societies.workforce.utils.TaskAssignment"></a>
+
+## TaskAssignment
+
+```python
+class TaskAssignment(BaseModel):
+```
+
+An individual task assignment within a batch.
+
<a id="camel.societies.workforce.utils.TaskAssignResult"></a>
## TaskAssignResult
@@ -28,7 +38,7 @@ The result of a task.
class TaskAssignResult(BaseModel):
```
-The result of task assignment.
+The result of task assignment for both single and batch assignments.
<a id="camel.societies.workforce.utils.check_if_running"></a>
diff --git a/docs/mintlify/reference/camel.societies.workforce.workforce.mdx b/docs/mintlify/reference/camel.societies.workforce.workforce.mdx
index d55959415..66d82c682 100644
--- a/docs/mintlify/reference/camel.societies.workforce.workforce.mdx
+++ b/docs/mintlify/reference/camel.societies.workforce.workforce.mdx
@@ -231,18 +231,19 @@ Get the information of all the child nodes under this node.
### _find_assignee
```python
-def _find_assignee(self, task: Task):
+def _find_assignee(self, tasks: List[Task]):
```
-Assigns a task to a worker node with the best capability.
+Assigns multiple tasks to worker nodes with the best capabilities.
**Parameters:**
-- **task** (Task): The task to be assigned.
+- **tasks** (List[Task]): The tasks to be assigned.
**Returns:**
- str: ID of the worker node to be assigned.
+ TaskAssignResult: Assignment result containing task assignments
+with their dependencies.
<a id="camel.societies.workforce.workforce.Workforce._create_worker_node_for_task"></a>