diff --git a/webapp/_webapp/src/components/message-entry-container/tools/jsonrpc.tsx b/webapp/_webapp/src/components/message-entry-container/tools/jsonrpc.tsx index 90537584..6ab12bb2 100644 --- a/webapp/_webapp/src/components/message-entry-container/tools/jsonrpc.tsx +++ b/webapp/_webapp/src/components/message-entry-container/tools/jsonrpc.tsx @@ -1,17 +1,13 @@ import { cn } from "@heroui/react"; -import { JsonRpcResult } from "./utils/common"; -import MarkdownComponent from "../../markdown"; import { LoadingIndicator } from "../../loading-indicator"; -import { useState } from "react"; type JsonRpcProps = { functionName: string; - jsonRpcResult: JsonRpcResult; preparing: boolean; animated: boolean; }; -export const JsonRpc = ({ functionName, jsonRpcResult, preparing, animated }: JsonRpcProps) => { +export const JsonRpc = ({ functionName, preparing, animated }: JsonRpcProps) => { if (preparing) { return ( diff --git a/webapp/_webapp/src/components/message-entry-container/tools/tools.tsx b/webapp/_webapp/src/components/message-entry-container/tools/tools.tsx index cb641bbc..de9899b8 100644 --- a/webapp/_webapp/src/components/message-entry-container/tools/tools.tsx +++ b/webapp/_webapp/src/components/message-entry-container/tools/tools.tsx @@ -60,7 +60,6 @@ export default function Tools({ messageId, functionName, message, error, prepari return ( @@ -70,7 +69,7 @@ export default function Tools({ messageId, functionName, message, error, prepari // fallback to unknown tool card if the json rpc result is not defined if (jsonRpcResult) { return ( - + ); } else { return ;