ai 4.0.0-canary.8 → 4.0.0-canary.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.d.mts +2 -4
- package/dist/index.d.ts +2 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -9
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
@@ -7,8 +7,6 @@ export { AISDKError, APICallError, EmptyResponseBodyError, InvalidPromptError, I
|
|
7
7
|
import { z } from 'zod';
|
8
8
|
import { ServerResponse } from 'http';
|
9
9
|
import { ServerResponse as ServerResponse$1 } from 'node:http';
|
10
|
-
import { AssistantStream } from 'openai/lib/AssistantStream';
|
11
|
-
import { Run } from 'openai/resources/beta/threads/runs/runs';
|
12
10
|
|
13
11
|
/**
|
14
12
|
* Telemetry configuration.
|
@@ -2162,7 +2160,7 @@ type AssistantResponseCallback = (options: {
|
|
2162
2160
|
/**
|
2163
2161
|
Forwards the assistant response stream to the client. Returns the `Run` object after it completes, or when it requires an action.
|
2164
2162
|
*/
|
2165
|
-
forwardStream: (stream:
|
2163
|
+
forwardStream: (stream: any) => Promise<any | undefined>;
|
2166
2164
|
}) => Promise<void>;
|
2167
2165
|
/**
|
2168
2166
|
The `AssistantResponse` allows you to send a stream of assistant update to `useAssistant`.
|
@@ -2213,7 +2211,7 @@ type LangChainStreamEvent = {
|
|
2213
2211
|
data: any;
|
2214
2212
|
};
|
2215
2213
|
/**
|
2216
|
-
Converts LangChain output streams to
|
2214
|
+
Converts LangChain output streams to an AI SDK Data Stream.
|
2217
2215
|
|
2218
2216
|
The following streams are supported:
|
2219
2217
|
- `LangChainAIMessageChunk` streams (LangChain `model.stream` output)
|
package/dist/index.d.ts
CHANGED
@@ -7,8 +7,6 @@ export { AISDKError, APICallError, EmptyResponseBodyError, InvalidPromptError, I
|
|
7
7
|
import { z } from 'zod';
|
8
8
|
import { ServerResponse } from 'http';
|
9
9
|
import { ServerResponse as ServerResponse$1 } from 'node:http';
|
10
|
-
import { AssistantStream } from 'openai/lib/AssistantStream';
|
11
|
-
import { Run } from 'openai/resources/beta/threads/runs/runs';
|
12
10
|
|
13
11
|
/**
|
14
12
|
* Telemetry configuration.
|
@@ -2162,7 +2160,7 @@ type AssistantResponseCallback = (options: {
|
|
2162
2160
|
/**
|
2163
2161
|
Forwards the assistant response stream to the client. Returns the `Run` object after it completes, or when it requires an action.
|
2164
2162
|
*/
|
2165
|
-
forwardStream: (stream:
|
2163
|
+
forwardStream: (stream: any) => Promise<any | undefined>;
|
2166
2164
|
}) => Promise<void>;
|
2167
2165
|
/**
|
2168
2166
|
The `AssistantResponse` allows you to send a stream of assistant update to `useAssistant`.
|
@@ -2213,7 +2211,7 @@ type LangChainStreamEvent = {
|
|
2213
2211
|
data: any;
|
2214
2212
|
};
|
2215
2213
|
/**
|
2216
|
-
Converts LangChain output streams to
|
2214
|
+
Converts LangChain output streams to an AI SDK Data Stream.
|
2217
2215
|
|
2218
2216
|
The following streams are supported:
|
2219
2217
|
- `LangChainAIMessageChunk` streams (LangChain `model.stream` output)
|