@builder.io/ai-utils 0.0.16 → 0.0.17
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 +5 -0
- package/dist/events.d.ts +4 -0
- package/package.json +1 -1
package/dist/completion.d.ts
CHANGED
|
@@ -69,6 +69,11 @@ export interface CompletionOptions {
|
|
|
69
69
|
* Additional console logs
|
|
70
70
|
*/
|
|
71
71
|
debug?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Date.now() timestamp of when the assistant was started.
|
|
74
|
+
* This is used to calculate the time taken between all
|
|
75
|
+
*/
|
|
76
|
+
start: number;
|
|
72
77
|
}
|
|
73
78
|
export type OnPromptSubmit = (opts: {
|
|
74
79
|
prompt?: string;
|
package/dist/events.d.ts
CHANGED
|
@@ -95,16 +95,19 @@ export interface ContentPropsUpdatePatch {
|
|
|
95
95
|
type: "props";
|
|
96
96
|
id: string;
|
|
97
97
|
value: Record<string, any>;
|
|
98
|
+
ts: number;
|
|
98
99
|
}
|
|
99
100
|
export interface ContentStyleUpdatePatch {
|
|
100
101
|
type: "style";
|
|
101
102
|
id: string;
|
|
102
103
|
value: Record<string, any>;
|
|
104
|
+
ts: number;
|
|
103
105
|
}
|
|
104
106
|
export interface ContentTextUpdatePatch {
|
|
105
107
|
type: "content";
|
|
106
108
|
id: string;
|
|
107
109
|
value: string;
|
|
110
|
+
ts: number;
|
|
108
111
|
}
|
|
109
112
|
export interface ContentCompleteEvent {
|
|
110
113
|
type: "assistant.content.complete";
|
|
@@ -113,6 +116,7 @@ export interface ContentCompleteEvent {
|
|
|
113
116
|
export interface ContentComplete {
|
|
114
117
|
threadId: string;
|
|
115
118
|
message: AssistantMessage;
|
|
119
|
+
ts: number;
|
|
116
120
|
}
|
|
117
121
|
export interface ModelCreateEvent {
|
|
118
122
|
type: "assistant.model.create";
|