Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

366 B
Raw Blame
import type { ToolCallMessagePartStatus } from "@assistant-ui/react";

export const hasCompleteAssistantToolArguments = (status: ToolCallMessagePartStatus | undefined) =>
  status?.type !== "running" && status?.type !== "incomplete";

export const hasFailedAssistantToolArguments = (status: ToolCallMessagePartStatus | undefined) =>
  status?.type === "incomplete";