🐫 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
[BUG] FunctionCallingMessage functions that have no arguments (#492)
Wendong-Fan564321790270
diff --git a/camel/messages/func_message.py b/camel/messages/func_message.pyindex 6c20df170..9e8e3f24d 100644--- a/camel/messages/func_message.py+++ b/camel/messages/func_message.py@@ -67,7 +67,7 @@ class FunctionCallingMessage(BaseMessage):OpenAIAssistantMessage: The converted :obj:`OpenAIAssistantMessage`object."""- if (not self.func_name) or (not self.args):+ if (not self.func_name) or (self.args is None):raise ValueError("Invalid request for converting into assistant message"" due to missing function name or arguments.")