@builder.io/ai-utils 0.11.33 → 0.11.34

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/codegen.d.ts +12 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.11.33",
3
+ "version": "0.11.34",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/codegen.d.ts CHANGED
@@ -110,18 +110,17 @@ export interface MemoryToolInput {
110
110
  memory_id?: string | null;
111
111
  when?: string;
112
112
  }
113
- export type FormFieldType = "text" | "color" | "select" | "number" | "url";
114
- export interface FormField {
115
- type: FormFieldType;
116
- label: string;
117
- default?: string;
118
- options?: string[];
119
- placeholder?: string;
120
- min?: number;
121
- max?: number;
122
- }
123
- export interface AskUserToolInput {
124
- form: FormField[];
113
+ export interface AskUserQuestionToolInput {
114
+ questions: {
115
+ question: string;
116
+ header: string;
117
+ options: {
118
+ label: string;
119
+ description: string;
120
+ }[];
121
+ multiSelect?: boolean;
122
+ }[];
123
+ answers?: Record<string, string>;
125
124
  }
126
125
  export interface AgentToolInput {
127
126
  description: string;
@@ -196,7 +195,7 @@ export interface CodeGenToolMap {
196
195
  Bash: BashToolInput;
197
196
  PowerShell: PowerShellToolInput;
198
197
  WebSearch: WebSearchToolInput;
199
- AskUser: AskUserToolInput;
198
+ AskUserQuestion: AskUserQuestionToolInput;
200
199
  Agent: AgentToolInput;
201
200
  Grep: GrepSearchToolInput;
202
201
  Glob: GlobSearchToolInput;