🐫 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-botaf50bdf5f262
diff --git a/docs/mintlify/reference/camel.societies.workforce.worker.mdx b/docs/mintlify/reference/camel.societies.workforce.worker.mdxindex ce7498fdb..26f2c1869 100644--- a/docs/mintlify/reference/camel.societies.workforce.worker.mdx+++ b/docs/mintlify/reference/camel.societies.workforce.worker.mdx@@ -56,4 +56,7 @@ def set_channel(self, channel: TaskChannel):def stop(self):```-Stop the worker.+Forcefully stop the worker.++Cancels all running tasks immediately and sets the stop flag.+The worker will exit after completing cancellation.diff --git a/docs/mintlify/reference/camel.societies.workforce.workforce.mdx b/docs/mintlify/reference/camel.societies.workforce.workforce.mdxindex 7191c4880..dfa4e24df 100644--- a/docs/mintlify/reference/camel.societies.workforce.workforce.mdx+++ b/docs/mintlify/reference/camel.societies.workforce.workforce.mdx@@ -606,6 +606,21 @@ yet been started. In the latter case we simply mark the stop flag sothat the loop (when it eventually starts) will exit immediately afterinitialisation.+<a id="camel.societies.workforce.workforce.Workforce.stop_immediately"></a>++### stop_immediately++```python+def stop_immediately(self):+```++Force-stop without waiting for current tasks to finish.++**Note:**++Child nodes will receive stop signals but may still be cleaning up+when this method returns.+<a id="camel.societies.workforce.workforce.Workforce.skip_gracefully"></a>### skip_gracefully@@ -1270,8 +1285,11 @@ Thread-safe submission of coroutine to the workforce loop.def stop(self):```-Stop all the child nodes under it. The node itself will be stopped-by its parent node.+Forcefully stop the workforce and its children immediately.++This is now an immediate stop (was previously a graceful lifecycle+cleanup). It cancels child listeners, clears pending/in-flight tasks,+and sets state to STOPPED without waiting for active work to finish.<a id="camel.societies.workforce.workforce.Workforce.clone"></a>