🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
Python agentai-societiesartificial-intelligencecommunicative-aicooperative-aideep-learninglarge-language-modelsmulti-agent-systemsnatural-language-processing
Auto-update documentation after merge [skip ci]
camel-docs-bot6530e7878f38
diff --git a/docs/mintlify/reference/camel.societies.workforce.workforce.mdx b/docs/mintlify/reference/camel.societies.workforce.workforce.mdxindex dfa4e24df..b2ce793ee 100644--- a/docs/mintlify/reference/camel.societies.workforce.workforce.mdx+++ b/docs/mintlify/reference/camel.societies.workforce.workforce.mdx@@ -526,7 +526,11 @@ Clean up tracking data for a task to prevent memory leaks.### _decompose_task```python-def _decompose_task(self, task: Task):+def _decompose_task(+ self,+ task: Task,+ stream_callback: Optional[Callable[['ChatAgentResponse'], None]] = None+):```Decompose the task into subtasks. This method will also set the@@ -535,6 +539,7 @@ relationship between the task and its subtasks.**Parameters:**- **task** (Task): The task to decompose.+- **stream_callback** (Callable[[ChatAgentResponse], None], optional): A callback function that receives each chunk (ChatAgentResponse) during streaming decomposition.**Returns:**diff --git a/docs/mintlify/reference/camel.tasks.task.mdx b/docs/mintlify/reference/camel.tasks.task.mdxindex 1f339eb61..5b10a4924 100644--- a/docs/mintlify/reference/camel.tasks.task.mdx+++ b/docs/mintlify/reference/camel.tasks.task.mdx@@ -298,7 +298,8 @@ def decompose(self,agent: 'ChatAgent',prompt: Optional[str] = None,- task_parser: Callable[[str, str], List['Task']] = parse_response+ task_parser: Callable[[str, str], List['Task']] = parse_response,+ stream_callback: Optional[Callable[['ChatAgentResponse'], None]] = None):```@@ -310,6 +311,7 @@ streaming or non-streaming based on agent configuration.- **agent** (ChatAgent): An agent that used to decompose the task.- **prompt** (str, optional): A prompt to decompose the task. If not provided, the default prompt will be used.- **task_parser** (Callable[[str, str], List[Task]], optional): A function to extract Task from response. If not provided, the default parse_response will be used.+- **stream_callback** (Callable[[ChatAgentResponse], None], optional): A callback function that receives each chunk (ChatAgentResponse) during streaming. This allows tracking the decomposition progress in real-time.**Returns:**@@ -325,8 +327,9 @@ all tasks.```pythondef _decompose_streaming(self,- response: 'StreamingChatAgentResponse',- task_parser: Callable[[str, str], List['Task']]+ response: Iterable,+ task_parser: Callable[[str, str], List['Task']],+ stream_callback: Optional[Callable[['ChatAgentResponse'], None]] = None):```@@ -336,6 +339,7 @@ Handle streaming response for task decomposition.- **response**: Streaming response from agent- **task_parser**: Function to parse tasks from response+- **stream_callback** (Callable[[ChatAgentResponse], None], optional): A callback function that receives each chunk (ChatAgentResponse) during streaming.- **Yields**: List[Task]: New tasks as they are parsed from streaming response<a id="camel.tasks.task.Task._decompose_non_streaming"></a>