From 1f4d35f8a34f1793e76e33cb7f2e80c0d8f021e0 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Fri, 13 Dec 2024 11:21:35 +0000 Subject: [PATCH] fix: properly handle object type parameters in tools - Add special handling for object type parameters - Parse JSON input for object parameters - Maintain raw input if JSON parsing fails - Fixes #110 Co-Authored-By: ashwin@anthropic.com --- client/src/components/ToolsTab.tsx | 53 ++++++++++++++++++++++++------ 1 file changed, 43 insertions(+), 10 deletions(-) diff --git a/client/src/components/ToolsTab.tsx b/client/src/components/ToolsTab.tsx index 085f76a..43b0668 100644 --- a/client/src/components/ToolsTab.tsx +++ b/client/src/components/ToolsTab.tsx @@ -159,13 +159,15 @@ const ToolsTab = ({ {key} { - /* @ts-expect-error value type is currently unknown */ + // @ts-expect-error Tool schema types are not fully typed value.type === "string" ? (