@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.
- package/dist/completion.d.ts +4 -0
- package/dist/events.d.ts +13 -0
- package/package.json +1 -1
package/dist/completion.d.ts
CHANGED
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";
|