🐫 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-bot7af479a55459
diff --git a/docs/mintlify/reference/camel.societies.workforce.task_channel.mdx b/docs/mintlify/reference/camel.societies.workforce.task_channel.mdxindex 9565e51e9..3ca198f3f 100644--- a/docs/mintlify/reference/camel.societies.workforce.task_channel.mdx+++ b/docs/mintlify/reference/camel.societies.workforce.task_channel.mdx@@ -71,6 +71,11 @@ class TaskChannel:An internal class used by Workforce to manage tasks.+This implementation uses a hybrid data structure approach:+- Hash map (_task_dict) for O(1) task lookup by ID+- Status-based index (_task_by_status) for efficient filtering by status+- Assignee/publisher queues for ordered task processing+<a id="camel.societies.workforce.task_channel.TaskChannel.__init__"></a>### __init__@@ -78,3 +83,27 @@ An internal class used by Workforce to manage tasks.```pythondef __init__(self):```++<a id="camel.societies.workforce.task_channel.TaskChannel._update_task_status"></a>++### _update_task_status++```python+def _update_task_status(self, task_id: str, new_status: PacketStatus):+```++Helper method to properly update task status in all indexes.++<a id="camel.societies.workforce.task_channel.TaskChannel._cleanup_task_from_indexes"></a>++### _cleanup_task_from_indexes++```python+def _cleanup_task_from_indexes(self, task_id: str):+```++Helper method to remove a task from all indexes.++**Parameters:**++- **task_id** (str): The ID of the task to remove from indexes.