🐫 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-bote6f6105d8f9b
diff --git a/docs/mintlify/reference/camel.agents.chat_agent.mdx b/docs/mintlify/reference/camel.agents.chat_agent.mdxindex 9c8b191d8..42266a854 100644--- a/docs/mintlify/reference/camel.agents.chat_agent.mdx+++ b/docs/mintlify/reference/camel.agents.chat_agent.mdx@@ -1387,7 +1387,8 @@ def _record_tool_calling(args: Dict[str, Any],result: Any,tool_call_id: str,- mask_output: bool = False+ mask_output: bool = False,+ extra_content: Optional[Dict[str, Any]] = None):```@@ -1401,6 +1402,7 @@ tool calling record.- **result** (Any): The result returned by the tool execution.- **tool_call_id** (str): A unique identifier for the tool call.- **mask_output** (bool, optional): Whether to return a sanitized placeholder instead of the raw tool output. (default: :obj:`False`)+- **extra_content** (Optional[Dict[str, Any]], optional): Additional content associated with the tool call. (default: :obj:`None`)**Returns:**diff --git a/docs/mintlify/reference/camel.messages.func_message.mdx b/docs/mintlify/reference/camel.messages.func_message.mdxindex 2681b76f7..bf09b2c5c 100644--- a/docs/mintlify/reference/camel.messages.func_message.mdx+++ b/docs/mintlify/reference/camel.messages.func_message.mdx@@ -18,6 +18,7 @@ function-related messages.- **result** (Optional[Any]): The result of function execution. (default: :obj:`None`)- **tool_call_id** (Optional[str]): The ID of the tool call, if available. (default: :obj:`None`)- **mask_output** (Optional[bool]): Whether to return a sanitized placeholder instead of the raw tool output. (default: :obj:`False`)+- **extra_content** (Optional[Dict[str, Any]]): Additional content associated with the tool call. (default: :obj:`None`)<a id="camel.messages.func_message.FunctionCallingMessage.to_openai_message"></a>diff --git a/docs/mintlify/reference/camel.models.gemini_model.mdx b/docs/mintlify/reference/camel.models.gemini_model.mdxindex 3ef520446..e60ce7902 100644--- a/docs/mintlify/reference/camel.models.gemini_model.mdx+++ b/docs/mintlify/reference/camel.models.gemini_model.mdx@@ -51,6 +51,81 @@ which is not accepted by Gemini. Also preserves thought signaturesrequired for Gemini 3 Pro function calling and adds fallback signatureswhen they are missing.+<a id="camel.models.gemini_model.GeminiModel._preserve_thought_signatures"></a>++### _preserve_thought_signatures++```python+def _preserve_thought_signatures(+ self,+ response: Union[ChatCompletion, Stream[ChatCompletionChunk], AsyncStream[ChatCompletionChunk]]+):+```++Preserve thought signatures from Gemini responses for future+requests.++According to the Gemini documentation, when a response contains tool+calls with thought signatures, these signatures must be preserved+exactly as received when the response is added to conversation history+for subsequent requests.++**Parameters:**++- **response**: The response from Gemini API++**Returns:**++ The response with thought signatures properly preserved.+For streaming responses, returns generators that preserve+signatures.++<a id="camel.models.gemini_model.GeminiModel._wrap_stream_with_thought_preservation"></a>++### _wrap_stream_with_thought_preservation++```python+def _wrap_stream_with_thought_preservation(self, stream: Stream[ChatCompletionChunk]):+```++Wrap a streaming response to preserve thought signatures in tool+calls.++This method ensures that when Gemini streaming responses contain tool+calls with thought signatures, these are properly preserved in the+extra_content field for future conversation context.++**Parameters:**++- **stream**: The original streaming response from Gemini++**Returns:**++ A wrapped stream that preserves thought signatures++<a id="camel.models.gemini_model.GeminiModel._wrap_async_stream_with_thought_preservation"></a>++### _wrap_async_stream_with_thought_preservation++```python+def _wrap_async_stream_with_thought_preservation(self, stream: AsyncStream[ChatCompletionChunk]):+```++Wrap an async streaming response to preserve thought signatures in+tool calls.++This method ensures that when Gemini async streaming responses contain+tool calls with thought signatures, these are properly preserved in+the extra_content field for future conversation context.++**Parameters:**++- **stream**: The original async streaming response from Gemini++**Returns:**++ A wrapped async stream that preserves thought signatures+<a id="camel.models.gemini_model.GeminiModel._run"></a>### _run