Skip to content
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

Fix ToolResult display for complex values #73

Closed
wants to merge 1 commit into from

Conversation

AtlantisPleb
Copy link
Contributor

This PR addresses issue #72 by improving the getToolParams function in panes/chat/ToolResult.tsx. The function now handles different types of values more specifically, providing a clearer representation of complex values instead of showing '[complex value]' for all non-string types.

Changes made:

  • Updated getToolParams function to handle different value types (string, number, boolean, null, array, object)
  • Improved readability of tool parameters in the UI

This change should resolve the issue of showing malformed data in the ToolResult component.

Copy link

vercel bot commented Aug 28, 2024

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

Name Status Preview Comments Updated (UTC)
v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 28, 2024 1:21am

Copy link

The Vercel build for this PR has failed. Please check the Vercel deployment logs for more information.

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.

1 participant