@builder.io/ai-utils 0.3.13 → 0.3.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/codegen.ts +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.3.13",
3
+ "version": "0.3.15",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.ts CHANGED
@@ -326,6 +326,7 @@ export interface GenerateCompletionStepPlanning {
326
326
  export interface GenerateCompletionStepUser {
327
327
  type: "user";
328
328
  displayPrompt: string | undefined;
329
+ attachments?: Array<Attachment>;
329
330
  id: string;
330
331
  user: UserSource;
331
332
  role: "user" | "agent";
@@ -453,7 +454,8 @@ export type GenerateCompletionState =
453
454
  | "success"
454
455
  | "abort"
455
456
  | "error"
456
- | "close";
457
+ | "close"
458
+ | "replay";
457
459
 
458
460
  export interface GenerateCompletionStepState {
459
461
  type: "state";
@@ -555,6 +557,7 @@ export interface GenerateUserMessage {
555
557
  attachments?: Attachment[];
556
558
  debugMode?: boolean;
557
559
  logsCheckpoint?: boolean;
560
+ dropAbortedPrompt?: boolean;
558
561
  }
559
562
 
560
563
  export interface UserInput {