🐫 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-bot5e34848c0c66
diff --git a/docs/mintlify/reference/camel.agents.chat_agent.mdx b/docs/mintlify/reference/camel.agents.chat_agent.mdxindex 85fbaaa7d..7503096b0 100644--- a/docs/mintlify/reference/camel.agents.chat_agent.mdx+++ b/docs/mintlify/reference/camel.agents.chat_agent.mdx@@ -672,6 +672,41 @@ def init_messages(self):Initializes the stored messages list with the current systemmessage.+<a id="camel.agents.chat_agent.ChatAgent.update_system_message"></a>++### update_system_message++```python+def update_system_message(+ self,+ system_message: Union[BaseMessage, str],+ reset_memory: bool = True+):+```++Update the system message.+It will reset conversation with new system message.++**Parameters:**++- **system_message** (Union[BaseMessage, str]): The new system message. Can be either a BaseMessage object or a string. If a string is provided, it will be converted into a BaseMessage object.+- **reset_memory** (bool): Whether to reinitialize conversation messages after updating the system message. Defaults to True.++<a id="camel.agents.chat_agent.ChatAgent.append_to_system_message"></a>++### append_to_system_message++```python+def append_to_system_message(self, content: str, reset_memory: bool = True):+```++Append additional context to existing system message.++**Parameters:**++- **content** (str): The additional system message.+- **reset_memory** (bool): Whether to reinitialize conversation messages after appending additional context. Defaults to True.+<a id="camel.agents.chat_agent.ChatAgent.reset_to_original_system_message"></a>### reset_to_original_system_messagediff --git a/docs/mintlify/reference/camel.messages.base.mdx b/docs/mintlify/reference/camel.messages.base.mdxindex f5e71431d..f4ad3b9db 100644--- a/docs/mintlify/reference/camel.messages.base.mdx+++ b/docs/mintlify/reference/camel.messages.base.mdx@@ -88,6 +88,31 @@ Create a new assistant message.BaseMessage: The new assistant message.+<a id="camel.messages.base.BaseMessage.make_system_message"></a>++### make_system_message++```python+def make_system_message(+ cls,+ content: str,+ role_name: str = 'System',+ meta_dict: Optional[Dict[str, str]] = None+):+```++Create a new system message.++**Parameters:**++- **content** (str): The content of the system message.+- **role_name** (str): The name of the system role. (default: :obj:`"System"`)+- **meta_dict** (Optional[Dict[str, str]]): Additional metadata dictionary for the message.++**Returns:**++ BaseMessage: The new system message.+<a id="camel.messages.base.BaseMessage.create_new_instance"></a>### create_new_instance