@builder.io/ai-utils 0.0.41 → 0.0.43

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.
@@ -93,6 +93,10 @@ export interface BuilderEditorState {
93
93
  * Email of the user in the builder.
94
94
  */
95
95
  userEmail?: string;
96
+ /**
97
+ * User's jobs
98
+ */
99
+ userJobs?: string[];
96
100
  /**
97
101
  * Selected ids in the builder.
98
102
  */
package/dist/events.d.ts CHANGED
@@ -223,6 +223,18 @@ export interface AssistantStats {
223
223
  * Error message if there was one.
224
224
  */
225
225
  errorMessage?: string;
226
+ /**
227
+ * Input tokens
228
+ */
229
+ inputTokens?: number;
230
+ /**
231
+ * Output tokens
232
+ */
233
+ outputTokens?: number;
234
+ /**
235
+ * Number of streamed snapshots
236
+ */
237
+ streamedSnapshots?: number;
226
238
  }
227
239
  export interface ModelCreateEvent {
228
240
  type: "assistant.model.create";
@@ -275,6 +287,7 @@ export interface ThreadMessageFeedback {
275
287
  sentiment?: "positive" | "negative";
276
288
  builderUserId?: string;
277
289
  builderEmail?: string;
290
+ completionId?: string;
278
291
  }
279
292
  export interface ThreadCreatedEvent {
280
293
  type: "assistant.thread.created";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",