🐫 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-bot8caf8c04452d
diff --git a/docs/mintlify/reference/camel.agents.chat_agent.mdx b/docs/mintlify/reference/camel.agents.chat_agent.mdxindex 9d087d29a..e54bd1e9c 100644--- a/docs/mintlify/reference/camel.agents.chat_agent.mdx+++ b/docs/mintlify/reference/camel.agents.chat_agent.mdx@@ -837,19 +837,34 @@ def _get_model_response(self,openai_messages: List[OpenAIMessage],num_tokens: int,+ current_iteration: int = 0,response_format: Optional[Type[BaseModel]] = None,- tool_schemas: Optional[List[Dict[str, Any]]] = None+ tool_schemas: Optional[List[Dict[str, Any]]] = None,+ prev_num_openai_messages: int = 0):```Internal function for agent step model response.+**Parameters:**++- **openai_messages** (List[OpenAIMessage]): The OpenAI messages to process.+- **num_tokens** (int): The number of tokens in the context.+- **current_iteration** (int): The current iteration of the step.+- **response_format** (Optional[Type[BaseModel]]): The response format to use.+- **tool_schemas** (Optional[List[Dict[str, Any]]]): The tool schemas to use.+- **prev_num_openai_messages** (int): The number of openai messages logged in the previous iteration.++**Returns:**++ ModelResponse: The model response.+<a id="camel.agents.chat_agent.ChatAgent._sanitize_messages_for_logging"></a>### _sanitize_messages_for_logging```python-def _sanitize_messages_for_logging(self, messages):+def _sanitize_messages_for_logging(self, messages, prev_num_openai_messages: int):```Sanitize OpenAI messages for logging by replacing base64 image@@ -858,6 +873,7 @@ data with a simple message and a link to view the image.**Parameters:**- **messages** (List[OpenAIMessage]): The OpenAI messages to sanitize.+- **prev_num_openai_messages** (int): The number of openai messages logged in the previous iteration.**Returns:**diff --git a/docs/mintlify/reference/camel.types.enums.mdx b/docs/mintlify/reference/camel.types.enums.mdxindex d4cb0a5e9..f9f78b3ec 100644--- a/docs/mintlify/reference/camel.types.enums.mdx+++ b/docs/mintlify/reference/camel.types.enums.mdx@@ -16,12 +16,20 @@ class ModelType(UnifiedModelType, Enum):def __str__(self):```+<a id="camel.types.enums.ModelType.__repr__"></a>++### __repr__++```python+def __repr__(self):+```+<a id="camel.types.enums.ModelType.__new__"></a>### __new__```python-def __new__(cls, value):+def __new__(cls, value: Union['ModelType', str]):```<a id="camel.types.enums.ModelType.from_name"></a>@@ -29,7 +37,7 @@ def __new__(cls, value):### from_name```python-def from_name(cls, name):+def from_name(cls, name: str):```Returns the ModelType enum value from a string.diff --git a/docs/mintlify/reference/camel.types.unified_model_type.mdx b/docs/mintlify/reference/camel.types.unified_model_type.mdxindex eaf26b303..bf06ba955 100644--- a/docs/mintlify/reference/camel.types.unified_model_type.mdx+++ b/docs/mintlify/reference/camel.types.unified_model_type.mdx@@ -32,6 +32,22 @@ def __new__(cls, value: Union['ModelType', str]):def __init__(self, value: Union['ModelType', str]):```+<a id="camel.types.unified_model_type.UnifiedModelType.__repr__"></a>++### __repr__++```python+def __repr__(self):+```++<a id="camel.types.unified_model_type.UnifiedModelType.__str__"></a>++### __str__++```python+def __str__(self):+```+<a id="camel.types.unified_model_type.UnifiedModelType.value_for_tiktoken"></a>### value_for_tiktoken