Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export default function Tools({ messageId, functionName, message, error, prepari
return (
<JsonRpc
functionName={functionName}
jsonRpcResult={jsonRpcResult || UNKNOWN_JSONRPC_RESULT}
preparing={preparing}
animated={animated}
/>
Expand All @@ -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 (
<JsonRpc functionName={functionName} jsonRpcResult={jsonRpcResult} preparing={preparing} animated={animated} />
<JsonRpc functionName={functionName} preparing={preparing} animated={animated} />
);
} else {
return <UnknownToolCard functionName={functionName} message={message} animated={animated} />;
Expand Down