From 8513f9aeae706e2c508c007eeb6d2aa76ce8bcf9 Mon Sep 17 00:00:00 2001 From: Simon Farshid Date: Thu, 20 Jun 2024 22:20:52 -0700 Subject: [PATCH] fix: build error (#275) --- .changeset/silly-lemons-arrive.md | 6 ++++++ .../src/ui/use-chat/useVercelUseChatRuntime.tsx | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .changeset/silly-lemons-arrive.md diff --git a/.changeset/silly-lemons-arrive.md b/.changeset/silly-lemons-arrive.md new file mode 100644 index 000000000..69c2bed6d --- /dev/null +++ b/.changeset/silly-lemons-arrive.md @@ -0,0 +1,6 @@ +--- +"@assistant-ui/react": patch +"@assistant-ui/react-ai-sdk": patch +--- + +feat: ToolUI addResult API diff --git a/packages/react-ai-sdk/src/ui/use-chat/useVercelUseChatRuntime.tsx b/packages/react-ai-sdk/src/ui/use-chat/useVercelUseChatRuntime.tsx index ea6978bb5..661bb8a77 100644 --- a/packages/react-ai-sdk/src/ui/use-chat/useVercelUseChatRuntime.tsx +++ b/packages/react-ai-sdk/src/ui/use-chat/useVercelUseChatRuntime.tsx @@ -1,8 +1,10 @@ -import type { UseChatHelpers } from "@ai-sdk/react"; +import type { useChat } from "@ai-sdk/react"; import { useEffect, useInsertionEffect, useState } from "react"; import { VercelAIRuntime } from "../VercelAIRuntime"; -export const useVercelUseChatRuntime = (chatHelpers: UseChatHelpers) => { +export const useVercelUseChatRuntime = ( + chatHelpers: ReturnType, +) => { const [runtime] = useState(() => new VercelAIRuntime(chatHelpers)); useInsertionEffect(() => {