We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 498e963 commit f76dee1Copy full SHA for f76dee1
src/smolagents/agents.py
@@ -1285,13 +1285,8 @@ def _step_stream(
1285
stop_sequences=["Observation:", "Calling tools:"],
1286
tools_to_call_from=self.tools_and_managed_agents,
1287
)
1288
- if chat_message.content is None and chat_message.raw is not None:
1289
- log_content = str(chat_message.raw)
1290
- else:
1291
- log_content = str(chat_message.content) or ""
1292
-
1293
self.logger.log_markdown(
1294
- content=log_content,
+ content=str(chat_message.content or chat_message.raw or ""),
1295
title="Output message of the LLM:",
1296
level=LogLevel.DEBUG,
1297
0 commit comments