@builder.io/ai-utils 0.4.36 → 0.4.38
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/package.json +1 -1
- package/src/codegen.d.ts +5 -4
- package/src/mapping.d.ts +1 -0
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export interface ESMImport {
|
|
|
8
8
|
importPath: string;
|
|
9
9
|
importType: ImportType;
|
|
10
10
|
}
|
|
11
|
+
export type ImportMetadata = ESMImport | string;
|
|
11
12
|
export interface ProjectFile {
|
|
12
13
|
filePath: string;
|
|
13
14
|
content?: string;
|
|
@@ -273,10 +274,6 @@ export interface GenerateCompletionStepUserInput {
|
|
|
273
274
|
prompt: string;
|
|
274
275
|
files: FileInfo[];
|
|
275
276
|
}
|
|
276
|
-
export interface GenerateCompletionStepToolResult {
|
|
277
|
-
type: "agent-input";
|
|
278
|
-
toolResults: ContentMessageItemToolResult[];
|
|
279
|
-
}
|
|
280
277
|
export interface GenerateCompletionStepPlanning {
|
|
281
278
|
type: "planning";
|
|
282
279
|
content: string;
|
|
@@ -310,6 +307,10 @@ export interface GenerateCompletionStepTool {
|
|
|
310
307
|
id: string;
|
|
311
308
|
content: string;
|
|
312
309
|
}
|
|
310
|
+
export interface GenerateCompletionStepToolResult {
|
|
311
|
+
type: "tool_result";
|
|
312
|
+
result: ContentMessageItemToolResult;
|
|
313
|
+
}
|
|
313
314
|
export interface GenerateCompletionStepText {
|
|
314
315
|
type: "text";
|
|
315
316
|
content: string;
|