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

GitHub Action5a1e0eb20462
diff --git a/docs/mintlify/reference/camel.tasks.task.mdx b/docs/mintlify/reference/camel.tasks.task.mdx
index fc5a6a7db..b916aa671 100644
--- a/docs/mintlify/reference/camel.tasks.task.mdx
+++ b/docs/mintlify/reference/camel.tasks.task.mdx
@@ -64,6 +64,16 @@ failure_count (int): The failure count for the task.
additional_info (Optional[Dict[str, Any]]): Additional information for
the task. (default: :obj: `None`)
+<a id="camel.tasks.task.Task.__repr__"></a>
+
+### __repr__
+
+```python
+def __repr__(self):
+```
+
+Return a string representation of the task.
+
<a id="camel.tasks.task.Task.from_message"></a>
### from_message
diff --git a/docs/mintlify/reference/camel.toolkits.task_planning_toolkit.mdx b/docs/mintlify/reference/camel.toolkits.task_planning_toolkit.mdx
index bfb6cd255..8e2f44dfe 100644
--- a/docs/mintlify/reference/camel.toolkits.task_planning_toolkit.mdx
+++ b/docs/mintlify/reference/camel.toolkits.task_planning_toolkit.mdx
@@ -8,7 +8,7 @@
class TaskPlanningToolkit(BaseToolkit):
```
-A toolkit for task decomposition and rePlanning.
+A toolkit for task decomposition and re-planning.
<a id="camel.toolkits.task_planning_toolkit.TaskPlanningToolkit.__init__"></a>
@@ -29,7 +29,12 @@ Initialize the TaskPlanningToolkit.
### decompose_task
```python
-def decompose_task(self, original_task_content: str, sub_task_contents: List[str]):
+def decompose_task(
+ self,
+ original_task_content: str,
+ sub_task_contents: List[str],
+ original_task_id: Optional[str] = None
+):
```
Use the tool to decompose an original task into several sub-tasks.
@@ -40,6 +45,7 @@ used when the original task is complex and needs to be decomposed.
- **original_task_content** (str): The content of the task to be decomposed.
- **sub_task_contents** (List[str]): A list of strings, where each string is the content for a new sub-task.
+- **original_task_id** (Optional[str]): The id of the task to be decomposed. If not provided, a new id will be generated. (default: :obj: `None`)
**Returns:**
@@ -50,10 +56,15 @@ used when the original task is complex and needs to be decomposed.
### replan_tasks
```python
-def replan_tasks(self, original_task_content: str, sub_task_contents: List[str]):
+def replan_tasks(
+ self,
+ original_task_content: str,
+ sub_task_contents: List[str],
+ original_task_id: Optional[str] = None
+):
```
-Use the tool to reDecompose a task into several subTasks.
+Use the tool to re_decompose a task into several subTasks.
It creates new Task objects from the provided original task content,
used when the decomposed tasks are not good enough to help finish
the task.
@@ -62,6 +73,7 @@ the task.
- **original_task_content** (str): The content of the task to be decomposed.
- **sub_task_contents** (List[str]): A list of strings, where each string is the content for a new sub-task.
+- **original_task_id** (Optional[str]): The id of the task to be decomposed. (default: :obj: `None`)
**Returns:**