@bubblelab/bubble-core 0.1.5 → 0.1.8

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.
@@ -75,15 +75,15 @@ declare const AIAgentParamsSchema: z.ZodObject<{
75
75
  mimeType: z.ZodDefault<z.ZodString>;
76
76
  description: z.ZodOptional<z.ZodString>;
77
77
  }, "strip", z.ZodTypeAny, {
78
- type: "base64";
79
78
  data: string;
79
+ type: "base64";
80
80
  mimeType: string;
81
81
  description?: string | undefined;
82
82
  }, {
83
83
  data: string;
84
84
  type?: "base64" | undefined;
85
- mimeType?: string | undefined;
86
85
  description?: string | undefined;
86
+ mimeType?: string | undefined;
87
87
  }>, z.ZodObject<{
88
88
  type: z.ZodLiteral<"url">;
89
89
  url: z.ZodString;
@@ -133,9 +133,15 @@ declare const AIAgentParamsSchema: z.ZodObject<{
133
133
  streaming: z.ZodDefault<z.ZodBoolean>;
134
134
  }, "strip", z.ZodTypeAny, {
135
135
  message: string;
136
+ model: {
137
+ model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929";
138
+ temperature: number;
139
+ maxTokens: number;
140
+ jsonMode: boolean;
141
+ };
136
142
  images: ({
137
- type: "base64";
138
143
  data: string;
144
+ type: "base64";
139
145
  mimeType: string;
140
146
  description?: string | undefined;
141
147
  } | {
@@ -144,12 +150,6 @@ declare const AIAgentParamsSchema: z.ZodObject<{
144
150
  description?: string | undefined;
145
151
  })[];
146
152
  systemPrompt: string;
147
- model: {
148
- model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929";
149
- temperature: number;
150
- maxTokens: number;
151
- jsonMode: boolean;
152
- };
153
153
  tools: {
154
154
  name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool";
155
155
  credentials?: Partial<Record<CredentialType, string>> | undefined;
@@ -162,24 +162,24 @@ declare const AIAgentParamsSchema: z.ZodObject<{
162
162
  }, {
163
163
  message: string;
164
164
  name?: string | undefined;
165
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
166
+ model?: {
167
+ model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined;
168
+ temperature?: number | undefined;
169
+ maxTokens?: number | undefined;
170
+ jsonMode?: boolean | undefined;
171
+ } | undefined;
165
172
  images?: ({
166
173
  data: string;
167
174
  type?: "base64" | undefined;
168
- mimeType?: string | undefined;
169
175
  description?: string | undefined;
176
+ mimeType?: string | undefined;
170
177
  } | {
171
178
  type: "url";
172
179
  url: string;
173
180
  description?: string | undefined;
174
181
  })[] | undefined;
175
182
  systemPrompt?: string | undefined;
176
- model?: {
177
- model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined;
178
- temperature?: number | undefined;
179
- maxTokens?: number | undefined;
180
- jsonMode?: boolean | undefined;
181
- } | undefined;
182
- credentials?: Partial<Record<CredentialType, string>> | undefined;
183
183
  tools?: {
184
184
  name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool";
185
185
  credentials?: Partial<Record<CredentialType, string>> | undefined;
@@ -207,6 +207,8 @@ declare const AIAgentResultSchema: z.ZodObject<{
207
207
  error: z.ZodString;
208
208
  success: z.ZodBoolean;
209
209
  }, "strip", z.ZodTypeAny, {
210
+ success: boolean;
211
+ error: string;
210
212
  response: string;
211
213
  toolCalls: {
212
214
  tool: string;
@@ -214,9 +216,9 @@ declare const AIAgentResultSchema: z.ZodObject<{
214
216
  output?: unknown;
215
217
  }[];
216
218
  iterations: number;
217
- error: string;
218
- success: boolean;
219
219
  }, {
220
+ success: boolean;
221
+ error: string;
220
222
  response: string;
221
223
  toolCalls: {
222
224
  tool: string;
@@ -224,8 +226,6 @@ declare const AIAgentResultSchema: z.ZodObject<{
224
226
  output?: unknown;
225
227
  }[];
226
228
  iterations: number;
227
- error: string;
228
- success: boolean;
229
229
  }>;
230
230
  type AIAgentParams = z.input<typeof AIAgentParamsSchema>;
231
231
  type AIAgentParamsParsed = z.output<typeof AIAgentParamsSchema>;
@@ -243,15 +243,15 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
243
243
  mimeType: z.ZodDefault<z.ZodString>;
244
244
  description: z.ZodOptional<z.ZodString>;
245
245
  }, "strip", z.ZodTypeAny, {
246
- type: "base64";
247
246
  data: string;
247
+ type: "base64";
248
248
  mimeType: string;
249
249
  description?: string | undefined;
250
250
  }, {
251
251
  data: string;
252
252
  type?: "base64" | undefined;
253
- mimeType?: string | undefined;
254
253
  description?: string | undefined;
254
+ mimeType?: string | undefined;
255
255
  }>, z.ZodObject<{
256
256
  type: z.ZodLiteral<"url">;
257
257
  url: z.ZodString;
@@ -301,9 +301,15 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
301
301
  streaming: z.ZodDefault<z.ZodBoolean>;
302
302
  }, "strip", z.ZodTypeAny, {
303
303
  message: string;
304
+ model: {
305
+ model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929";
306
+ temperature: number;
307
+ maxTokens: number;
308
+ jsonMode: boolean;
309
+ };
304
310
  images: ({
305
- type: "base64";
306
311
  data: string;
312
+ type: "base64";
307
313
  mimeType: string;
308
314
  description?: string | undefined;
309
315
  } | {
@@ -312,12 +318,6 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
312
318
  description?: string | undefined;
313
319
  })[];
314
320
  systemPrompt: string;
315
- model: {
316
- model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929";
317
- temperature: number;
318
- maxTokens: number;
319
- jsonMode: boolean;
320
- };
321
321
  tools: {
322
322
  name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool";
323
323
  credentials?: Partial<Record<CredentialType, string>> | undefined;
@@ -330,24 +330,24 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
330
330
  }, {
331
331
  message: string;
332
332
  name?: string | undefined;
333
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
334
+ model?: {
335
+ model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined;
336
+ temperature?: number | undefined;
337
+ maxTokens?: number | undefined;
338
+ jsonMode?: boolean | undefined;
339
+ } | undefined;
333
340
  images?: ({
334
341
  data: string;
335
342
  type?: "base64" | undefined;
336
- mimeType?: string | undefined;
337
343
  description?: string | undefined;
344
+ mimeType?: string | undefined;
338
345
  } | {
339
346
  type: "url";
340
347
  url: string;
341
348
  description?: string | undefined;
342
349
  })[] | undefined;
343
350
  systemPrompt?: string | undefined;
344
- model?: {
345
- model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | undefined;
346
- temperature?: number | undefined;
347
- maxTokens?: number | undefined;
348
- jsonMode?: boolean | undefined;
349
- } | undefined;
350
- credentials?: Partial<Record<CredentialType, string>> | undefined;
351
351
  tools?: {
352
352
  name: "get-bubble-details-tool" | "list-bubbles-tool" | "sql-query-tool" | "chart-js-tool" | "web-search-tool" | "web-scrape-tool" | "web-crawl-tool" | "web-extract-tool" | "research-agent-tool" | "reddit-scrape-tool" | "bubbleflow-validation-tool";
353
353
  credentials?: Partial<Record<CredentialType, string>> | undefined;
@@ -375,6 +375,8 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
375
375
  error: z.ZodString;
376
376
  success: z.ZodBoolean;
377
377
  }, "strip", z.ZodTypeAny, {
378
+ success: boolean;
379
+ error: string;
378
380
  response: string;
379
381
  toolCalls: {
380
382
  tool: string;
@@ -382,9 +384,9 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
382
384
  output?: unknown;
383
385
  }[];
384
386
  iterations: number;
385
- error: string;
386
- success: boolean;
387
387
  }, {
388
+ success: boolean;
389
+ error: string;
388
390
  response: string;
389
391
  toolCalls: {
390
392
  tool: string;
@@ -392,8 +394,6 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
392
394
  output?: unknown;
393
395
  }[];
394
396
  iterations: number;
395
- error: string;
396
- success: boolean;
397
397
  }>;
398
398
  static readonly shortDescription = "AI agent with LangGraph for tool-enabled conversations, multimodal support, and JSON mode";
399
399
  static readonly longDescription = "\n An AI agent powered by LangGraph that can use any tool bubble to answer questions.\n Use cases:\n - Add tools to enhance the AI agent's capabilities (web-search-tool, web-scrape-tool)\n - Multi-step reasoning with tool assistance\n - Tool-augmented conversations with any registered tool\n - JSON mode for structured output (strips markdown formatting)\n ";