2026-04-14 10:39:30 -04:00
|
|
|
import type { ToolCallStatus } from "@/shared/types/messages";
|
|
|
|
|
import type { ToolPart } from "@/shared/ui/ai-elements/tool";
|
|
|
|
|
|
|
|
|
|
export const toolStatusMap: Record<ToolCallStatus, ToolPart["state"]> = {
|
|
|
|
|
pending: "input-streaming",
|
2026-05-07 09:38:37 -04:00
|
|
|
in_progress: "input-available",
|
2026-04-14 10:39:30 -04:00
|
|
|
completed: "output-available",
|
2026-05-07 09:38:37 -04:00
|
|
|
failed: "output-error",
|
2026-04-14 10:39:30 -04:00
|
|
|
stopped: "output-denied",
|
|
|
|
|
};
|