🐫 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
camel-docs-bot10540c53f54f
diff --git a/docs/mintlify/reference/camel.societies.workforce.workforce.mdx b/docs/mintlify/reference/camel.societies.workforce.workforce.mdxindex 03689a2e2..9a205cc9e 100644--- a/docs/mintlify/reference/camel.societies.workforce.workforce.mdx+++ b/docs/mintlify/reference/camel.societies.workforce.workforce.mdx@@ -456,6 +456,103 @@ def _get_child_nodes_info(self):Get the information of all the child nodes under this node.+<a id="camel.societies.workforce.workforce.Workforce._get_valid_worker_ids"></a>++### _get_valid_worker_ids++```python+def _get_valid_worker_ids(self):+```++**Returns:**++ set: Set of valid worker IDs that can be assigned tasks.++<a id="camel.societies.workforce.workforce.Workforce._call_coordinator_for_assignment"></a>++### _call_coordinator_for_assignment++```python+def _call_coordinator_for_assignment(self, tasks: List[Task], invalid_ids: Optional[List[str]] = None):+```++Call coordinator agent to assign tasks with optional validation+feedback in the case of invalid worker IDs.++**Parameters:**++- **tasks** (List[Task]): Tasks to assign.+- **invalid_ids** (List[str], optional): Invalid worker IDs from previous attempt (if any).++**Returns:**++ TaskAssignResult: Assignment result from coordinator.++<a id="camel.societies.workforce.workforce.Workforce._validate_assignments"></a>++### _validate_assignments++```python+def _validate_assignments(self, assignments: List[TaskAssignment], valid_ids: Set[str]):+```++Validate task assignments against valid worker IDs.++**Parameters:**++- **assignments** (List[TaskAssignment]): Assignments to validate.+- **valid_ids** (Set[str]): Set of valid worker IDs.++**Returns:**++ Tuple[List[TaskAssignment], List[TaskAssignment]]:+(valid_assignments, invalid_assignments)++<a id="camel.societies.workforce.workforce.Workforce._handle_task_assignment_fallbacks"></a>++### _handle_task_assignment_fallbacks++```python+def _handle_task_assignment_fallbacks(self, tasks: List[Task]):+```++Create new workers for unassigned tasks as fallback.++**Parameters:**++- **tasks** (List[Task]): Tasks that need new workers.++**Returns:**++ List[TaskAssignment]: Assignments for newly created workers.++<a id="camel.societies.workforce.workforce.Workforce._handle_assignment_retry_and_fallback"></a>++### _handle_assignment_retry_and_fallback++```python+def _handle_assignment_retry_and_fallback(+ self,+ invalid_assignments: List[TaskAssignment],+ tasks: List[Task],+ valid_worker_ids: Set[str]+):+```++Called if Coordinator agent fails to assign tasks to valid worker+IDs. Handles retry assignment and fallback worker creation for invalid+assignments.++**Parameters:**++- **invalid_assignments** (List[TaskAssignment]): Invalid assignments to retry.+- **tasks** (List[Task]): Original tasks list for task lookup.+- **valid_worker_ids** (set): Set of valid worker IDs.++**Returns:**++ List[TaskAssignment]: Final assignments for the invalid tasks.+<a id="camel.societies.workforce.workforce.Workforce._find_assignee"></a>### _find_assigneediff --git a/docs/mintlify/reference/camel.storages.vectordb_storages.chroma.mdx b/docs/mintlify/reference/camel.storages.vectordb_storages.chroma.mdxindex 6610ad5c5..ea8df9c47 100644--- a/docs/mintlify/reference/camel.storages.vectordb_storages.chroma.mdx+++ b/docs/mintlify/reference/camel.storages.vectordb_storages.chroma.mdx@@ -24,7 +24,7 @@ This class provides multiple ways to connect to ChromaDB instances:- **vector_dim** (int): The dimension of storing vectors.- **collection_name** (Optional[str], optional): Name for the collection in ChromaDB. If not provided, auto-generated with timestamp. (default: :obj:`None`)-- **client_type** (ChromaClientType, optional): Type of ChromaDB client to use. Supported types: 'ephemeral', 'persistent', 'http', 'cloud'. (default: :obj:`"ephemeral"`) # Persistent client parameters+- **client_type** (`Literal["ephemeral", "persistent", "http", "cloud"]`): Type of ChromaDB client to use. Supported types: 'ephemeral', 'persistent', 'http', 'cloud'. (default: :obj:`"ephemeral"`) # Persistent client parameters- **path** (Optional[str], optional): Path to directory for persistent storage. Only used when client_type='persistent'. (default: :obj:`"./chroma"`) # HTTP client parameters- **host** (str, optional): Host for remote ChromaDB server. (default: :obj:`"localhost"`)- **port** (int, optional): Port for remote ChromaDB server. (default: :obj:`8000`)@@ -49,7 +49,7 @@ def __init__(self,vector_dim: int,collection_name: Optional[str] = None,- client_type: ChromaClientType = 'ephemeral',+ client_type: Literal['ephemeral', 'persistent', 'http', 'cloud'] = 'ephemeral',path: Optional[str] = './chroma',host: str = 'localhost',port: int = 8000,@@ -84,14 +84,17 @@ Deletes the collection if :obj:`delete_collection_on_del` is set to### _validate_client_type```python-def _validate_client_type(self, client_type: ChromaClientType):+def _validate_client_type(+ self,+ client_type: Literal['ephemeral', 'persistent', 'http', 'cloud']+):```Validates client type parameter.**Parameters:**-- **client_type**: The client type to validate.+- **client_type** (`Literal["ephemeral", "persistent", "http", "cloud"]`): The client type to validate.<a id="camel.storages.vectordb_storages.chroma.ChromaStorage._validate_client_config"></a>