Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1053,9 +1053,10 @@ def _reformat_tool_calls_results(response, logger=None):
# fallback to the original response in that case
if logger:
logger.warning(
f"Empty agent response extracted, likely due to input schema change. "
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change looks good. There is actually a second line also logging response

Agent response could not be parsed, falling back to original response:

f"Falling back to using the original response: {response}"
"Empty agent response extracted, likely due to input schema change. "
"Falling back to using the original response "
)
logger.debug(f"Original response: {response}")
return response
return "\n".join(agent_response)
except Exception as e:
Expand Down
Loading