@bubblelab/bubble-core 0.1.65 → 0.1.67

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 (76) hide show
  1. package/dist/bubble-bundle.d.ts +104 -104
  2. package/dist/bubbles/service-bubble/agi-inc.d.ts +88 -88
  3. package/dist/bubbles/service-bubble/ai-agent.d.ts +117 -96
  4. package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
  5. package/dist/bubbles/service-bubble/ai-agent.js +131 -0
  6. package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
  7. package/dist/bubbles/service-bubble/airtable.d.ts +118 -118
  8. package/dist/bubbles/service-bubble/apify/apify.d.ts +26 -26
  9. package/dist/bubbles/service-bubble/ashby/ashby.d.ts +89 -68
  10. package/dist/bubbles/service-bubble/ashby/ashby.d.ts.map +1 -1
  11. package/dist/bubbles/service-bubble/ashby/ashby.js +96 -0
  12. package/dist/bubbles/service-bubble/ashby/ashby.js.map +1 -1
  13. package/dist/bubbles/service-bubble/ashby/ashby.schema.d.ts +108 -102
  14. package/dist/bubbles/service-bubble/ashby/ashby.schema.d.ts.map +1 -1
  15. package/dist/bubbles/service-bubble/ashby/ashby.schema.js +10 -1
  16. package/dist/bubbles/service-bubble/ashby/ashby.schema.js.map +1 -1
  17. package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +26 -26
  18. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts +2 -2
  19. package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +130 -130
  20. package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +16 -16
  21. package/dist/bubbles/service-bubble/eleven-labs.d.ts +28 -28
  22. package/dist/bubbles/service-bubble/firecrawl.d.ts +1001 -1001
  23. package/dist/bubbles/service-bubble/followupboss.d.ts +144 -144
  24. package/dist/bubbles/service-bubble/fullenrich/fullenrich.d.ts +56 -56
  25. package/dist/bubbles/service-bubble/github.d.ts +176 -176
  26. package/dist/bubbles/service-bubble/gmail.d.ts +240 -240
  27. package/dist/bubbles/service-bubble/google-calendar.d.ts +138 -138
  28. package/dist/bubbles/service-bubble/google-drive.d.ts +76 -76
  29. package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +32 -32
  30. package/dist/bubbles/service-bubble/hello-world.d.ts +8 -8
  31. package/dist/bubbles/service-bubble/http.d.ts +12 -12
  32. package/dist/bubbles/service-bubble/insforge-db.d.ts +16 -16
  33. package/dist/bubbles/service-bubble/jira/jira.d.ts +54 -54
  34. package/dist/bubbles/service-bubble/notion/notion.d.ts +2089 -2089
  35. package/dist/bubbles/service-bubble/postgresql.d.ts +16 -16
  36. package/dist/bubbles/service-bubble/resend.d.ts +28 -28
  37. package/dist/bubbles/service-bubble/slack/slack.d.ts +420 -420
  38. package/dist/bubbles/service-bubble/storage.d.ts +20 -20
  39. package/dist/bubbles/service-bubble/stripe/stripe.d.ts +107 -107
  40. package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +4 -4
  41. package/dist/bubbles/service-bubble/telegram.d.ts +1562 -1562
  42. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +15 -15
  43. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +2 -2
  44. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +20 -20
  45. package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +18 -18
  46. package/dist/bubbles/tool-bubble/code-edit-tool.d.ts +8 -8
  47. package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +70 -70
  48. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +4 -4
  49. package/dist/bubbles/tool-bubble/get-trigger-detail-tool.d.ts +4 -4
  50. package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +4 -4
  51. package/dist/bubbles/tool-bubble/instagram-tool.d.ts +14 -14
  52. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.d.ts +2 -2
  53. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +326 -326
  54. package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
  55. package/dist/bubbles/tool-bubble/people-search-tool.d.ts +112 -112
  56. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +24 -24
  57. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +10 -10
  58. package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +8 -8
  59. package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +76 -76
  60. package/dist/bubbles/tool-bubble/tool-template.d.ts +4 -4
  61. package/dist/bubbles/tool-bubble/twitter-tool.d.ts +160 -160
  62. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +22 -22
  63. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +8 -8
  64. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +8 -8
  65. package/dist/bubbles/tool-bubble/web-search-tool.d.ts +8 -8
  66. package/dist/bubbles/tool-bubble/youtube-tool.d.ts +28 -28
  67. package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +4 -4
  68. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +50 -50
  69. package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +18 -18
  70. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +72 -72
  71. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +36 -36
  72. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +36 -36
  73. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +98 -98
  74. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +18 -18
  75. package/dist/bubbles.json +59 -22
  76. package/package.json +2 -2
@@ -83,7 +83,7 @@ declare const AIAgentParamsSchema: z.ZodObject<{
83
83
  systemPrompt: z.ZodDefault<z.ZodString>;
84
84
  name: z.ZodOptional<z.ZodDefault<z.ZodString>>;
85
85
  model: z.ZodDefault<z.ZodObject<{
86
- model: z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-opus-4-5", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b"]>;
86
+ model: z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-opus-4-5", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>;
87
87
  temperature: z.ZodDefault<z.ZodNumber>;
88
88
  maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
89
89
  reasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
@@ -91,26 +91,26 @@ declare const AIAgentParamsSchema: z.ZodObject<{
91
91
  provider: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
92
92
  jsonMode: z.ZodDefault<z.ZodBoolean>;
93
93
  backupModel: z.ZodOptional<z.ZodDefault<z.ZodObject<{
94
- model: z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-opus-4-5", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b"]>;
94
+ model: z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-opus-4-5", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>;
95
95
  temperature: z.ZodOptional<z.ZodNumber>;
96
96
  maxTokens: z.ZodOptional<z.ZodNumber>;
97
97
  reasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
98
98
  maxRetries: z.ZodOptional<z.ZodNumber>;
99
99
  }, "strip", z.ZodTypeAny, {
100
- model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b";
100
+ model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research";
101
101
  temperature?: number | undefined;
102
102
  maxTokens?: number | undefined;
103
103
  reasoningEffort?: "low" | "medium" | "high" | undefined;
104
104
  maxRetries?: number | undefined;
105
105
  }, {
106
- model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b";
106
+ model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research";
107
107
  temperature?: number | undefined;
108
108
  maxTokens?: number | undefined;
109
109
  reasoningEffort?: "low" | "medium" | "high" | undefined;
110
110
  maxRetries?: number | undefined;
111
111
  }>>>;
112
112
  }, "strip", z.ZodTypeAny, {
113
- model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b";
113
+ model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research";
114
114
  temperature: number;
115
115
  maxTokens: number;
116
116
  maxRetries: number;
@@ -118,14 +118,14 @@ declare const AIAgentParamsSchema: z.ZodObject<{
118
118
  reasoningEffort?: "low" | "medium" | "high" | undefined;
119
119
  provider?: string[] | undefined;
120
120
  backupModel?: {
121
- model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b";
121
+ model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research";
122
122
  temperature?: number | undefined;
123
123
  maxTokens?: number | undefined;
124
124
  reasoningEffort?: "low" | "medium" | "high" | undefined;
125
125
  maxRetries?: number | undefined;
126
126
  } | undefined;
127
127
  }, {
128
- model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b";
128
+ model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research";
129
129
  temperature?: number | undefined;
130
130
  maxTokens?: number | undefined;
131
131
  reasoningEffort?: "low" | "medium" | "high" | undefined;
@@ -133,7 +133,7 @@ declare const AIAgentParamsSchema: z.ZodObject<{
133
133
  provider?: string[] | undefined;
134
134
  jsonMode?: boolean | undefined;
135
135
  backupModel?: {
136
- model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b";
136
+ model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research";
137
137
  temperature?: number | undefined;
138
138
  maxTokens?: number | undefined;
139
139
  reasoningEffort?: "low" | "medium" | "high" | undefined;
@@ -161,12 +161,12 @@ declare const AIAgentParamsSchema: z.ZodObject<{
161
161
  }, "strip", z.ZodTypeAny, {
162
162
  description: string;
163
163
  name: string;
164
- schema: Record<string, unknown> | z.ZodTypeAny;
164
+ schema: z.ZodTypeAny | Record<string, unknown>;
165
165
  func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>;
166
166
  }, {
167
167
  description: string;
168
168
  name: string;
169
- schema: Record<string, unknown> | z.ZodTypeAny;
169
+ schema: z.ZodTypeAny | Record<string, unknown>;
170
170
  func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>;
171
171
  }>, "many">>>;
172
172
  maxIterations: z.ZodDefault<z.ZodNumber>;
@@ -175,8 +175,19 @@ declare const AIAgentParamsSchema: z.ZodObject<{
175
175
  expectedOutputSchema: z.ZodOptional<z.ZodUnion<[z.ZodType<z.ZodTypeAny, z.ZodTypeDef, z.ZodTypeAny>, z.ZodString]>>;
176
176
  }, "strip", z.ZodTypeAny, {
177
177
  message: string;
178
+ images: ({
179
+ type: "base64";
180
+ data: string;
181
+ mimeType: string;
182
+ description?: string | undefined;
183
+ } | {
184
+ type: "url";
185
+ url: string;
186
+ description?: string | undefined;
187
+ })[];
188
+ systemPrompt: string;
178
189
  model: {
179
- model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b";
190
+ model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research";
180
191
  temperature: number;
181
192
  maxTokens: number;
182
193
  maxRetries: number;
@@ -184,31 +195,20 @@ declare const AIAgentParamsSchema: z.ZodObject<{
184
195
  reasoningEffort?: "low" | "medium" | "high" | undefined;
185
196
  provider?: string[] | undefined;
186
197
  backupModel?: {
187
- model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b";
198
+ model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research";
188
199
  temperature?: number | undefined;
189
200
  maxTokens?: number | undefined;
190
201
  reasoningEffort?: "low" | "medium" | "high" | undefined;
191
202
  maxRetries?: number | undefined;
192
203
  } | undefined;
193
204
  };
194
- streaming: boolean;
195
205
  tools: {
196
206
  name: "get-bubble-details-tool" | "get-trigger-detail-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" | "code-edit-tool" | "instagram-tool" | "linkedin-tool" | "tiktok-tool" | "twitter-tool" | "google-maps-tool" | "youtube-tool" | "amazon-shopping-tool" | "people-search-tool";
197
207
  credentials?: Partial<Record<CredentialType, string>> | undefined;
198
208
  config?: Record<string, unknown> | undefined;
199
209
  }[];
200
- images: ({
201
- type: "base64";
202
- data: string;
203
- mimeType: string;
204
- description?: string | undefined;
205
- } | {
206
- type: "url";
207
- url: string;
208
- description?: string | undefined;
209
- })[];
210
- systemPrompt: string;
211
210
  maxIterations: number;
211
+ streaming: boolean;
212
212
  name?: string | undefined;
213
213
  credentials?: Partial<Record<CredentialType, string>> | undefined;
214
214
  conversationHistory?: {
@@ -220,7 +220,7 @@ declare const AIAgentParamsSchema: z.ZodObject<{
220
220
  customTools?: {
221
221
  description: string;
222
222
  name: string;
223
- schema: Record<string, unknown> | z.ZodTypeAny;
223
+ schema: z.ZodTypeAny | Record<string, unknown>;
224
224
  func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>;
225
225
  }[] | undefined;
226
226
  expectedOutputSchema?: string | z.ZodTypeAny | undefined;
@@ -228,8 +228,25 @@ declare const AIAgentParamsSchema: z.ZodObject<{
228
228
  message: string;
229
229
  name?: string | undefined;
230
230
  credentials?: Partial<Record<CredentialType, string>> | undefined;
231
+ images?: ({
232
+ data: string;
233
+ type?: "base64" | undefined;
234
+ description?: string | undefined;
235
+ mimeType?: string | undefined;
236
+ } | {
237
+ type: "url";
238
+ url: string;
239
+ description?: string | undefined;
240
+ })[] | undefined;
241
+ conversationHistory?: {
242
+ role: "user" | "assistant" | "tool";
243
+ content: string;
244
+ toolCallId?: string | undefined;
245
+ name?: string | undefined;
246
+ }[] | undefined;
247
+ systemPrompt?: string | undefined;
231
248
  model?: {
232
- model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b";
249
+ model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research";
233
250
  temperature?: number | undefined;
234
251
  maxTokens?: number | undefined;
235
252
  reasoningEffort?: "low" | "medium" | "high" | undefined;
@@ -237,47 +254,31 @@ declare const AIAgentParamsSchema: z.ZodObject<{
237
254
  provider?: string[] | undefined;
238
255
  jsonMode?: boolean | undefined;
239
256
  backupModel?: {
240
- model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b";
257
+ model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research";
241
258
  temperature?: number | undefined;
242
259
  maxTokens?: number | undefined;
243
260
  reasoningEffort?: "low" | "medium" | "high" | undefined;
244
261
  maxRetries?: number | undefined;
245
262
  } | undefined;
246
263
  } | undefined;
247
- streaming?: boolean | undefined;
248
264
  tools?: {
249
265
  name: "get-bubble-details-tool" | "get-trigger-detail-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" | "code-edit-tool" | "instagram-tool" | "linkedin-tool" | "tiktok-tool" | "twitter-tool" | "google-maps-tool" | "youtube-tool" | "amazon-shopping-tool" | "people-search-tool";
250
266
  credentials?: Partial<Record<CredentialType, string>> | undefined;
251
267
  config?: Record<string, unknown> | undefined;
252
268
  }[] | undefined;
253
- images?: ({
254
- data: string;
255
- type?: "base64" | undefined;
256
- description?: string | undefined;
257
- mimeType?: string | undefined;
258
- } | {
259
- type: "url";
260
- url: string;
261
- description?: string | undefined;
262
- })[] | undefined;
263
- conversationHistory?: {
264
- role: "user" | "assistant" | "tool";
265
- content: string;
266
- toolCallId?: string | undefined;
267
- name?: string | undefined;
268
- }[] | undefined;
269
- systemPrompt?: string | undefined;
270
269
  customTools?: {
271
270
  description: string;
272
271
  name: string;
273
- schema: Record<string, unknown> | z.ZodTypeAny;
272
+ schema: z.ZodTypeAny | Record<string, unknown>;
274
273
  func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>;
275
274
  }[] | undefined;
276
275
  maxIterations?: number | undefined;
276
+ streaming?: boolean | undefined;
277
277
  expectedOutputSchema?: string | z.ZodTypeAny | undefined;
278
278
  }>;
279
279
  declare const AIAgentResultSchema: z.ZodObject<{
280
280
  response: z.ZodString;
281
+ reasoning: z.ZodOptional<z.ZodString>;
281
282
  toolCalls: z.ZodArray<z.ZodObject<{
282
283
  tool: z.ZodString;
283
284
  input: z.ZodUnknown;
@@ -292,11 +293,12 @@ declare const AIAgentResultSchema: z.ZodObject<{
292
293
  output?: unknown;
293
294
  }>, "many">;
294
295
  iterations: z.ZodNumber;
296
+ totalCost: z.ZodOptional<z.ZodNumber>;
295
297
  error: z.ZodString;
296
298
  success: z.ZodBoolean;
297
299
  }, "strip", z.ZodTypeAny, {
298
- error: string;
299
300
  success: boolean;
301
+ error: string;
300
302
  response: string;
301
303
  toolCalls: {
302
304
  tool: string;
@@ -304,9 +306,11 @@ declare const AIAgentResultSchema: z.ZodObject<{
304
306
  output?: unknown;
305
307
  }[];
306
308
  iterations: number;
309
+ reasoning?: string | undefined;
310
+ totalCost?: number | undefined;
307
311
  }, {
308
- error: string;
309
312
  success: boolean;
313
+ error: string;
310
314
  response: string;
311
315
  toolCalls: {
312
316
  tool: string;
@@ -314,6 +318,8 @@ declare const AIAgentResultSchema: z.ZodObject<{
314
318
  output?: unknown;
315
319
  }[];
316
320
  iterations: number;
321
+ reasoning?: string | undefined;
322
+ totalCost?: number | undefined;
317
323
  }>;
318
324
  type AIAgentParams = z.input<typeof AIAgentParamsSchema> & {
319
325
  beforeToolCall?: ToolHookBefore;
@@ -382,7 +388,7 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
382
388
  systemPrompt: z.ZodDefault<z.ZodString>;
383
389
  name: z.ZodOptional<z.ZodDefault<z.ZodString>>;
384
390
  model: z.ZodDefault<z.ZodObject<{
385
- model: z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-opus-4-5", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b"]>;
391
+ model: z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-opus-4-5", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>;
386
392
  temperature: z.ZodDefault<z.ZodNumber>;
387
393
  maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
388
394
  reasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
@@ -390,26 +396,26 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
390
396
  provider: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
391
397
  jsonMode: z.ZodDefault<z.ZodBoolean>;
392
398
  backupModel: z.ZodOptional<z.ZodDefault<z.ZodObject<{
393
- model: z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-opus-4-5", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b"]>;
399
+ model: z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-opus-4-5", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>;
394
400
  temperature: z.ZodOptional<z.ZodNumber>;
395
401
  maxTokens: z.ZodOptional<z.ZodNumber>;
396
402
  reasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
397
403
  maxRetries: z.ZodOptional<z.ZodNumber>;
398
404
  }, "strip", z.ZodTypeAny, {
399
- model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b";
405
+ model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research";
400
406
  temperature?: number | undefined;
401
407
  maxTokens?: number | undefined;
402
408
  reasoningEffort?: "low" | "medium" | "high" | undefined;
403
409
  maxRetries?: number | undefined;
404
410
  }, {
405
- model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b";
411
+ model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research";
406
412
  temperature?: number | undefined;
407
413
  maxTokens?: number | undefined;
408
414
  reasoningEffort?: "low" | "medium" | "high" | undefined;
409
415
  maxRetries?: number | undefined;
410
416
  }>>>;
411
417
  }, "strip", z.ZodTypeAny, {
412
- model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b";
418
+ model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research";
413
419
  temperature: number;
414
420
  maxTokens: number;
415
421
  maxRetries: number;
@@ -417,14 +423,14 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
417
423
  reasoningEffort?: "low" | "medium" | "high" | undefined;
418
424
  provider?: string[] | undefined;
419
425
  backupModel?: {
420
- model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b";
426
+ model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research";
421
427
  temperature?: number | undefined;
422
428
  maxTokens?: number | undefined;
423
429
  reasoningEffort?: "low" | "medium" | "high" | undefined;
424
430
  maxRetries?: number | undefined;
425
431
  } | undefined;
426
432
  }, {
427
- model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b";
433
+ model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research";
428
434
  temperature?: number | undefined;
429
435
  maxTokens?: number | undefined;
430
436
  reasoningEffort?: "low" | "medium" | "high" | undefined;
@@ -432,7 +438,7 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
432
438
  provider?: string[] | undefined;
433
439
  jsonMode?: boolean | undefined;
434
440
  backupModel?: {
435
- model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b";
441
+ model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research";
436
442
  temperature?: number | undefined;
437
443
  maxTokens?: number | undefined;
438
444
  reasoningEffort?: "low" | "medium" | "high" | undefined;
@@ -460,12 +466,12 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
460
466
  }, "strip", z.ZodTypeAny, {
461
467
  description: string;
462
468
  name: string;
463
- schema: Record<string, unknown> | z.ZodTypeAny;
469
+ schema: z.ZodTypeAny | Record<string, unknown>;
464
470
  func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>;
465
471
  }, {
466
472
  description: string;
467
473
  name: string;
468
- schema: Record<string, unknown> | z.ZodTypeAny;
474
+ schema: z.ZodTypeAny | Record<string, unknown>;
469
475
  func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>;
470
476
  }>, "many">>>;
471
477
  maxIterations: z.ZodDefault<z.ZodNumber>;
@@ -474,8 +480,19 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
474
480
  expectedOutputSchema: z.ZodOptional<z.ZodUnion<[z.ZodType<z.ZodTypeAny, z.ZodTypeDef, z.ZodTypeAny>, z.ZodString]>>;
475
481
  }, "strip", z.ZodTypeAny, {
476
482
  message: string;
483
+ images: ({
484
+ type: "base64";
485
+ data: string;
486
+ mimeType: string;
487
+ description?: string | undefined;
488
+ } | {
489
+ type: "url";
490
+ url: string;
491
+ description?: string | undefined;
492
+ })[];
493
+ systemPrompt: string;
477
494
  model: {
478
- model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b";
495
+ model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research";
479
496
  temperature: number;
480
497
  maxTokens: number;
481
498
  maxRetries: number;
@@ -483,31 +500,20 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
483
500
  reasoningEffort?: "low" | "medium" | "high" | undefined;
484
501
  provider?: string[] | undefined;
485
502
  backupModel?: {
486
- model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b";
503
+ model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research";
487
504
  temperature?: number | undefined;
488
505
  maxTokens?: number | undefined;
489
506
  reasoningEffort?: "low" | "medium" | "high" | undefined;
490
507
  maxRetries?: number | undefined;
491
508
  } | undefined;
492
509
  };
493
- streaming: boolean;
494
510
  tools: {
495
511
  name: "get-bubble-details-tool" | "get-trigger-detail-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" | "code-edit-tool" | "instagram-tool" | "linkedin-tool" | "tiktok-tool" | "twitter-tool" | "google-maps-tool" | "youtube-tool" | "amazon-shopping-tool" | "people-search-tool";
496
512
  credentials?: Partial<Record<CredentialType, string>> | undefined;
497
513
  config?: Record<string, unknown> | undefined;
498
514
  }[];
499
- images: ({
500
- type: "base64";
501
- data: string;
502
- mimeType: string;
503
- description?: string | undefined;
504
- } | {
505
- type: "url";
506
- url: string;
507
- description?: string | undefined;
508
- })[];
509
- systemPrompt: string;
510
515
  maxIterations: number;
516
+ streaming: boolean;
511
517
  name?: string | undefined;
512
518
  credentials?: Partial<Record<CredentialType, string>> | undefined;
513
519
  conversationHistory?: {
@@ -519,7 +525,7 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
519
525
  customTools?: {
520
526
  description: string;
521
527
  name: string;
522
- schema: Record<string, unknown> | z.ZodTypeAny;
528
+ schema: z.ZodTypeAny | Record<string, unknown>;
523
529
  func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>;
524
530
  }[] | undefined;
525
531
  expectedOutputSchema?: string | z.ZodTypeAny | undefined;
@@ -527,8 +533,25 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
527
533
  message: string;
528
534
  name?: string | undefined;
529
535
  credentials?: Partial<Record<CredentialType, string>> | undefined;
536
+ images?: ({
537
+ data: string;
538
+ type?: "base64" | undefined;
539
+ description?: string | undefined;
540
+ mimeType?: string | undefined;
541
+ } | {
542
+ type: "url";
543
+ url: string;
544
+ description?: string | undefined;
545
+ })[] | undefined;
546
+ conversationHistory?: {
547
+ role: "user" | "assistant" | "tool";
548
+ content: string;
549
+ toolCallId?: string | undefined;
550
+ name?: string | undefined;
551
+ }[] | undefined;
552
+ systemPrompt?: string | undefined;
530
553
  model?: {
531
- model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b";
554
+ model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research";
532
555
  temperature?: number | undefined;
533
556
  maxTokens?: number | undefined;
534
557
  reasoningEffort?: "low" | "medium" | "high" | undefined;
@@ -536,47 +559,31 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
536
559
  provider?: string[] | undefined;
537
560
  jsonMode?: boolean | undefined;
538
561
  backupModel?: {
539
- model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b";
562
+ model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-5.1" | "openai/gpt-5.2" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-5" | "anthropic/claude-haiku-4-5" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.6" | "openrouter/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/openai/gpt-oss-120b" | "openrouter/openai/o3-deep-research" | "openrouter/openai/o4-mini-deep-research";
540
563
  temperature?: number | undefined;
541
564
  maxTokens?: number | undefined;
542
565
  reasoningEffort?: "low" | "medium" | "high" | undefined;
543
566
  maxRetries?: number | undefined;
544
567
  } | undefined;
545
568
  } | undefined;
546
- streaming?: boolean | undefined;
547
569
  tools?: {
548
570
  name: "get-bubble-details-tool" | "get-trigger-detail-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" | "code-edit-tool" | "instagram-tool" | "linkedin-tool" | "tiktok-tool" | "twitter-tool" | "google-maps-tool" | "youtube-tool" | "amazon-shopping-tool" | "people-search-tool";
549
571
  credentials?: Partial<Record<CredentialType, string>> | undefined;
550
572
  config?: Record<string, unknown> | undefined;
551
573
  }[] | undefined;
552
- images?: ({
553
- data: string;
554
- type?: "base64" | undefined;
555
- description?: string | undefined;
556
- mimeType?: string | undefined;
557
- } | {
558
- type: "url";
559
- url: string;
560
- description?: string | undefined;
561
- })[] | undefined;
562
- conversationHistory?: {
563
- role: "user" | "assistant" | "tool";
564
- content: string;
565
- toolCallId?: string | undefined;
566
- name?: string | undefined;
567
- }[] | undefined;
568
- systemPrompt?: string | undefined;
569
574
  customTools?: {
570
575
  description: string;
571
576
  name: string;
572
- schema: Record<string, unknown> | z.ZodTypeAny;
577
+ schema: z.ZodTypeAny | Record<string, unknown>;
573
578
  func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>;
574
579
  }[] | undefined;
575
580
  maxIterations?: number | undefined;
581
+ streaming?: boolean | undefined;
576
582
  expectedOutputSchema?: string | z.ZodTypeAny | undefined;
577
583
  }>;
578
584
  static readonly resultSchema: z.ZodObject<{
579
585
  response: z.ZodString;
586
+ reasoning: z.ZodOptional<z.ZodString>;
580
587
  toolCalls: z.ZodArray<z.ZodObject<{
581
588
  tool: z.ZodString;
582
589
  input: z.ZodUnknown;
@@ -591,11 +598,12 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
591
598
  output?: unknown;
592
599
  }>, "many">;
593
600
  iterations: z.ZodNumber;
601
+ totalCost: z.ZodOptional<z.ZodNumber>;
594
602
  error: z.ZodString;
595
603
  success: z.ZodBoolean;
596
604
  }, "strip", z.ZodTypeAny, {
597
- error: string;
598
605
  success: boolean;
606
+ error: string;
599
607
  response: string;
600
608
  toolCalls: {
601
609
  tool: string;
@@ -603,9 +611,11 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
603
611
  output?: unknown;
604
612
  }[];
605
613
  iterations: number;
614
+ reasoning?: string | undefined;
615
+ totalCost?: number | undefined;
606
616
  }, {
607
- error: string;
608
617
  success: boolean;
618
+ error: string;
609
619
  response: string;
610
620
  toolCalls: {
611
621
  tool: string;
@@ -613,6 +623,8 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
613
623
  output?: unknown;
614
624
  }[];
615
625
  iterations: number;
626
+ reasoning?: string | undefined;
627
+ totalCost?: number | undefined;
616
628
  }>;
617
629
  static readonly shortDescription = "AI agent with LangGraph for tool-enabled conversations, multimodal support, and JSON mode";
618
630
  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 ";
@@ -645,6 +657,15 @@ export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AI
645
657
  */
646
658
  private getCredentialTypeForModel;
647
659
  protected chooseCredential(): string | undefined;
660
+ /**
661
+ * Check if the model is a deep research model that requires direct API call
662
+ */
663
+ private isDeepResearchModel;
664
+ /**
665
+ * Execute deep research models via OpenRouter API directly
666
+ * Bypasses LangChain since these models have compatibility issues
667
+ */
668
+ private executeDeepResearchViaOpenRouter;
648
669
  private initializeModel;
649
670
  private initializeTools;
650
671
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ai-agent.d.ts","sourceRoot":"","sources":["../../../src/bubbles/service-bubble/ai-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAmB,MAAM,KAAK,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EACL,cAAc,EAGf,MAAM,2BAA2B,CAAC;AAInC,OAAO,EAEL,SAAS,EAET,cAAc,EACf,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,gCAAgC,CAAC;AAExC,OAAO,KAAK,EAAE,UAAU,EAAE,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