The platform for continuously improving AI agents.
import type { IconName } from "@/components/ui/icons";
export function activityIcon(tool?: string): IconName {
if (tool === "present") return "chart";
if (tool === "python" || tool === "execute_python" || tool === "run_python") return "python";
if (["training", "train"].includes(tool ?? "")) return "finetuning";
if (["benchmark", "evaluate", "score", "review"].includes(tool ?? "")) return "eval";
if (
[
"inspect_source",
"data",
"asset",
"transform",
"split",
"prepare",
"publish_package",
"read_rows",
].includes(tool ?? "")
)
return "dataset";
if (["serving", "publish", "predict", "prediction"].includes(tool ?? "")) return "inference";
if (["delegate", "message_agent", "inspect_agent"].includes(tool ?? "")) return "agent";
if (["explore_context", "history", "search", "contract"].includes(tool ?? "")) return "search";
if (tool === "experiment") return "gitBranch";
return "code";
}