Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

Auto-update documentation after merge [skip ci]

camel-docs-bot2c2fadf39468
diff --git a/docs/mintlify/reference/camel.agents.chat_agent.mdx b/docs/mintlify/reference/camel.agents.chat_agent.mdx
index 588ff9ade..0a03eedd0 100644
--- a/docs/mintlify/reference/camel.agents.chat_agent.mdx
+++ b/docs/mintlify/reference/camel.agents.chat_agent.mdx
@@ -1435,8 +1435,7 @@ def _record_tool_calling(
):
```
-Record the tool calling information in the memory, and return the
-tool calling record.
+Record the tool result in the memory.
**Parameters:**
@@ -1579,6 +1578,11 @@ def _execute_tool_from_stream_data(self, tool_call_data: Dict[str, Any]):
Execute a tool from accumulated stream data.
+**Note:**
+
+calling this method (via _record_assistant_tool_calls_message).
+This method only records the tool result message.
+
<a id="camel.agents.chat_agent.ChatAgent._create_error_response"></a>
### _create_error_response
@@ -1606,6 +1610,30 @@ Record the assistant message that contains tool calls.
This method creates and records an assistant message that includes
the tool calls information, which is required by OpenAI's API format.
+<a id="camel.agents.chat_agent.ChatAgent._record_assistant_tool_calls_from_requests"></a>
+
+### _record_assistant_tool_calls_from_requests
+
+```python
+def _record_assistant_tool_calls_from_requests(
+ self,
+ tool_call_requests: List['ToolCallRequest'],
+ content: str = ''
+):
+```
+
+Record assistant message with tool calls from requests.
+
+This method creates and records an assistant message that includes
+all the tool calls from a list of ToolCallRequest objects.
+Used for non-streaming tool execution to ensure proper message
+sequence.
+
+**Parameters:**
+
+- **tool_call_requests**: List of tool call requests from model response.
+- **content**: Optional content to include in the assistant message.
+
<a id="camel.agents.chat_agent.ChatAgent._create_streaming_response_with_accumulator"></a>
### _create_streaming_response_with_accumulator