Skip to content

Conversation

@plaflamme
Copy link
Contributor

Convert and empty response to an empty string.

I have a tool that returns an empty response which eventually fails on this line because the list is empty.

This change fixes the problem and seems valid considering how the conversion for a single message converts the response to a string as well.

@vbarda
Copy link

vbarda commented Apr 28, 2025

thanks for adding!

@vbarda vbarda merged commit 8ddf5aa into langchain-ai:main Apr 28, 2025
3 checks passed
ssmails pushed a commit to ssmails/langchain-mcp-adapters that referenced this pull request May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants