fix: harden assistant interactive tools

This commit is contained in:
ajnart committed 2026-08-02 14:20:40 +02:00
1 parent eff3168f1c
commit d7969e1ec1
9 files changed
+134 -17

No files matched your search

@@ -1,4 +1,7 @@
import type { ToolCallMessagePartStatus } from "@assistant-ui/react";
export const hasCompleteAssistantToolArguments = (status: ToolCallMessagePartStatus | undefined) =>
status?.type !== "running";
status?.type !== "running" && status?.type !== "incomplete";
export const hasFailedAssistantToolArguments = (status: ToolCallMessagePartStatus | undefined) =>
status?.type === "incomplete";