fix: harden assistant interactive tools
This commit is contained in:
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";
|
||||
Reference in new issue
Block a user