import { useState } from "react"; import { ChevronRightIcon } from "@heroicons/react/20/solid"; import { WrenchScrewdriverIcon } from "@heroicons/react/24/outline"; export interface ToolUse { id: string; toolName: string; input: string; result: string; isError: boolean; durationMs?: number; } export function ToolRow({ tool }: { tool: ToolUse }) { const [open, setOpen] = useState(false); return (
{open && (
Input
{tool.input}
Result
{tool.result}
)}
); } export function ToolBlock({ tools }: { tools: ToolUse[] }) { return (
{tools.map((tool) => ( ))}
); }