Skip to content

Fix primitive types in tool response not being displayed #107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

VMinB12
Copy link
Contributor

@VMinB12 VMinB12 commented Apr 12, 2025

If a tool response returns a primitive type, such as 10, isJsonContent would be set to true. However the display logic assumes that the content is a json object or array and hence the value won't be displayed. This fixes the issue by only setting isJsonContent to true for non-primitive types.

Copy link

vercel bot commented Apr 12, 2025

@VMinB12 is attempting to deploy a commit to the LangChain Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Member

@bracesproul bracesproul left a comment

Choose a reason for hiding this comment

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

thank you!

Copy link

vercel bot commented Apr 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langgraph-chat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 18, 2025 4:55pm

@bracesproul bracesproul merged commit 936d8a4 into langchain-ai:main Apr 18, 2025
6 checks passed
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