import { Button } from "@douyinfe/semi-ui-19"; import type { ToolCardProps } from "../ai/types"; export function ResearchToolCard({ call, onAction }: ToolCardProps) { const result = call.result || {}; return (
{typeof result.name === "string" ? result.name : "研究资料"} {typeof result.version === "number" ? ` · v${result.version}` : ""}
{typeof result.id === "string" && !result.report && ( )}{JSON.stringify(result, null, 2)}