import { useState } from "react"; import type { ToolAction } from "../types"; interface Props { action: ToolAction; } export function AgentAction({ action }: Props) { const [expanded, setExpanded] = useState(false); return (
{JSON.stringify(action.args, null, 2)}
{JSON.stringify(action.result, null, 2)}