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

chore: explicit model usage warnings for workforce (#2065)

JINO ROHITe76ed649a1bf
diff --git a/camel/agents/chat_agent.py b/camel/agents/chat_agent.py
index b79a49771..38b98b4e1 100644
--- a/camel/agents/chat_agent.py
+++ b/camel/agents/chat_agent.py
@@ -526,6 +526,10 @@ class ChatAgent(BaseAgent):
message.content = response.output_messages[0].content
if not self._try_format_message(message, response_format):
logger.warning(f"Failed to parse response: {message.content}")
+ logger.warning(
+ "To improve reliability, consider using models "
+ "that are better equipped to handle structured output"
+ )
async def _aformat_response_if_needed(
self,