@builder.io/ai-utils 0.0.24 → 0.0.26
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 +16 -0
- package/dist/events.d.ts +1 -1
- package/package.json +1 -1
package/dist/completion.d.ts
CHANGED
|
@@ -83,6 +83,14 @@ export interface BuiderEditorState {
|
|
|
83
83
|
* Builder model. (not the LLM model)
|
|
84
84
|
*/
|
|
85
85
|
model?: BuilderModel;
|
|
86
|
+
/**
|
|
87
|
+
* Other models in the Builder account
|
|
88
|
+
*/
|
|
89
|
+
otherModels?: BuilderModel[];
|
|
90
|
+
/**
|
|
91
|
+
* Email of the user in the builder.
|
|
92
|
+
*/
|
|
93
|
+
userEmail?: string;
|
|
86
94
|
/**
|
|
87
95
|
* Selected ids in the builder.
|
|
88
96
|
*/
|
|
@@ -91,6 +99,14 @@ export interface BuiderEditorState {
|
|
|
91
99
|
* Builder space id.
|
|
92
100
|
*/
|
|
93
101
|
spaceId?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Builder user id.
|
|
104
|
+
*/
|
|
105
|
+
userId?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Builder session id.
|
|
108
|
+
*/
|
|
109
|
+
sessionId?: string;
|
|
94
110
|
}
|
|
95
111
|
export type OnPromptSubmit = (opts: {
|
|
96
112
|
prompt?: string;
|
package/dist/events.d.ts
CHANGED
|
@@ -123,7 +123,6 @@ export interface ContentComplete {
|
|
|
123
123
|
threadId: string;
|
|
124
124
|
completionId: string;
|
|
125
125
|
modelId: string;
|
|
126
|
-
duration: number;
|
|
127
126
|
message: AssistantMessage;
|
|
128
127
|
ts: number;
|
|
129
128
|
}
|
|
@@ -143,6 +142,7 @@ export interface ModelUpdate {
|
|
|
143
142
|
}
|
|
144
143
|
export interface BuilderModel {
|
|
145
144
|
name?: string;
|
|
145
|
+
friendlyName?: string;
|
|
146
146
|
description?: string;
|
|
147
147
|
type?: string;
|
|
148
148
|
fields?: BuilderModelField[];
|