blink 0.1.13 → 0.1.15

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/dist/common.d.ts CHANGED
@@ -22,10 +22,9 @@ declare const chat: Readonly<{
22
22
  }>;
23
23
  //#endregion
24
24
  //#region src/api/agent.d.ts
25
- interface StreamTextOptions {
25
+ interface SendMessagesOptions {
26
26
  readonly messages: Message[];
27
27
  readonly abortSignal?: AbortSignal;
28
- readonly stream: WritableStream<InferUIMessageChunk<any>>;
29
28
  }
30
29
  interface StreamTextResult$1 {
31
30
  toUIMessageStream(): AsyncIterableStream<InferUIMessageChunk<any>>;
@@ -35,13 +34,13 @@ interface StreamTextResult$1 {
35
34
  interface AgentOptions {
36
35
  readonly name: string;
37
36
  readonly description?: string;
38
- streamText(options: StreamTextOptions): Promise<StreamTextResult$1>;
37
+ sendMessages(options: SendMessagesOptions): Promise<StreamTextResult$1>;
39
38
  webhook?(request: Request): Promise<Response | void>;
40
39
  }
41
40
  declare function agent(options: AgentOptions): {
42
41
  name: string;
43
42
  description: string | undefined;
44
- streamText: (options: StreamTextOptions) => Promise<StreamTextResult$1>;
43
+ sendMessages: (options: SendMessagesOptions) => Promise<StreamTextResult$1>;
45
44
  webhook: ((request: Request) => Promise<Response | void>) | undefined;
46
45
  };
47
46
  //#endregion
@@ -200,8 +199,9 @@ declare const __unsafe_internal: {
200
199
  interface Runtime {
201
200
  readonly name: string;
202
201
  readonly description?: string;
203
- streamText: AgentOptions["streamText"];
202
+ sendMessages: AgentOptions["sendMessages"];
204
203
  webhook?(req: Request): Promise<Response | void>;
204
+ dispose(): void;
205
205
  }
206
206
  //#endregion
207
- export { AgentOptions, Chat, CreateChatOptions, Message, MessageOptions, Options, ReadDirectoryEntry, ReadFileResult, Runtime, StreamTextOptions, StreamTextResult$1 as StreamTextResult, WaitProcess, __unsafe_internal, agent, chat, compute };
207
+ export { AgentOptions, Chat, CreateChatOptions, Message, MessageOptions, Options, ReadDirectoryEntry, ReadFileResult, Runtime, SendMessagesOptions, StreamTextResult$1 as StreamTextResult, WaitProcess, __unsafe_internal, agent, chat, compute };