@builder.io/ai-utils 0.0.23 → 0.0.25

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.
@@ -43,6 +43,11 @@ export interface CompletionOptions {
43
43
  * The state of the builder editor.
44
44
  */
45
45
  builderState?: BuiderEditorState;
46
+ /**
47
+ * Persist the thread conversation context.
48
+ * Defaults to `true`.
49
+ */
50
+ persistThread?: boolean;
46
51
  /**
47
52
  * Additional console logs
48
53
  */
@@ -86,6 +91,14 @@ export interface BuiderEditorState {
86
91
  * Builder space id.
87
92
  */
88
93
  spaceId?: string;
94
+ /**
95
+ * Builder user id.
96
+ */
97
+ userId?: string;
98
+ /**
99
+ * Builder session id.
100
+ */
101
+ sessionId?: string;
89
102
  }
90
103
  export type OnPromptSubmit = (opts: {
91
104
  prompt?: string;
package/dist/events.d.ts CHANGED
@@ -121,6 +121,8 @@ export interface ContentCompleteEvent {
121
121
  }
122
122
  export interface ContentComplete {
123
123
  threadId: string;
124
+ completionId: string;
125
+ modelId: string;
124
126
  message: AssistantMessage;
125
127
  ts: number;
126
128
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",