You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Decompose the task into subtasks. This method will also set the
@@ -535,6 +539,7 @@ relationship between the task and its subtasks.
535
539
**Parameters:**
536
540
537
541
-**task** (Task): The task to decompose.
542
+
-**stream_callback** (Callable[[ChatAgentResponse], None], optional): A callback function that receives each chunk (ChatAgentResponse) during streaming decomposition.
@@ -310,6 +311,7 @@ streaming or non-streaming based on agent configuration.
310
311
-**agent** (ChatAgent): An agent that used to decompose the task.
311
312
-**prompt** (str, optional): A prompt to decompose the task. If not provided, the default prompt will be used.
312
313
-**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.
314
+
-**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.
@@ -336,6 +339,7 @@ Handle streaming response for task decomposition.
336
339
337
340
-**response**: Streaming response from agent
338
341
-**task_parser**: Function to parse tasks from response
342
+
-**stream_callback** (Callable[[ChatAgentResponse], None], optional): A callback function that receives each chunk (ChatAgentResponse) during streaming.
339
343
-**Yields**: List[Task]: New tasks as they are parsed from streaming response
0 commit comments