@botpress/adk 1.19.0-beta.9 → 2.0.0-alpha.0

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 (199) hide show
  1. package/dist/agent-init/agent-project-generator.d.ts +5 -1
  2. package/dist/agent-init/agent-project-generator.d.ts.map +1 -1
  3. package/dist/agent-project/agent-project.d.ts +3 -3
  4. package/dist/agent-project/agent-project.d.ts.map +1 -1
  5. package/dist/agent-project/agent-resolver.d.ts.map +1 -1
  6. package/dist/agent-project/config-writer.d.ts +1 -1
  7. package/dist/agent-project/dependency-state-to-dependencies.d.ts +11 -0
  8. package/dist/agent-project/dependency-state-to-dependencies.d.ts.map +1 -0
  9. package/dist/agent-project/types.d.ts +9 -4
  10. package/dist/agent-project/types.d.ts.map +1 -1
  11. package/dist/agent0/capabilities/commands/adk-build.md +6 -5
  12. package/dist/agent0/capabilities/commands/adk-debug.md +1 -1
  13. package/dist/agent0/capabilities/commands/adk-dev-console.md +1 -1
  14. package/dist/agent0/capabilities/commands/adk-document.md +10 -2
  15. package/dist/agent0/capabilities/commands/adk-eval.md +1 -1
  16. package/dist/agent0/capabilities/commands/adk-explain.md +2 -2
  17. package/dist/agent0/capabilities/commands/adk-init.md +2 -2
  18. package/dist/agent0/capabilities/commands/adk-ship.md +1 -1
  19. package/dist/agent0/capabilities/commands/adk-test.md +3 -3
  20. package/dist/agent0/capabilities/commands/adk-validate.md +3 -3
  21. package/dist/agent0/capabilities/skills/adk/SKILL.md +21 -21
  22. package/dist/agent0/capabilities/skills/adk/references/actions.md +245 -239
  23. package/dist/agent0/capabilities/skills/adk/references/advanced-patterns.md +185 -218
  24. package/dist/agent0/capabilities/skills/adk/references/agent-config.md +74 -71
  25. package/dist/agent0/capabilities/skills/adk/references/assets.md +45 -48
  26. package/dist/agent0/capabilities/skills/adk/references/autonomous-execution.md +40 -46
  27. package/dist/agent0/capabilities/skills/adk/references/cli.md +17 -7
  28. package/dist/agent0/capabilities/skills/adk/references/context-api.md +98 -94
  29. package/dist/agent0/capabilities/skills/adk/references/conversation-lifecycle.md +65 -62
  30. package/dist/agent0/capabilities/skills/adk/references/conversations.md +395 -385
  31. package/dist/agent0/capabilities/skills/adk/references/custom-components.md +1 -1
  32. package/dist/agent0/capabilities/skills/adk/references/desk.md +236 -234
  33. package/dist/agent0/capabilities/skills/adk/references/explain-config.md +54 -37
  34. package/dist/agent0/capabilities/skills/adk/references/files.md +301 -306
  35. package/dist/agent0/capabilities/skills/adk/references/integration-actions.md +211 -214
  36. package/dist/agent0/capabilities/skills/adk/references/integrations.md +33 -31
  37. package/dist/agent0/capabilities/skills/adk/references/interfaces.md +13 -12
  38. package/dist/agent0/capabilities/skills/adk/references/knowledge-bases.md +98 -111
  39. package/dist/agent0/capabilities/skills/adk/references/mcp-server.md +6 -0
  40. package/dist/agent0/capabilities/skills/adk/references/messages.md +280 -256
  41. package/dist/agent0/capabilities/skills/adk/references/model-configuration.md +52 -49
  42. package/dist/agent0/capabilities/skills/adk/references/patterns-mistakes.md +102 -101
  43. package/dist/agent0/capabilities/skills/adk/references/plugins.md +15 -15
  44. package/dist/agent0/capabilities/skills/adk/references/tables.md +204 -210
  45. package/dist/agent0/capabilities/skills/adk/references/tags.md +141 -143
  46. package/dist/agent0/capabilities/skills/adk/references/tools.md +191 -199
  47. package/dist/agent0/capabilities/skills/adk/references/triggers.md +331 -336
  48. package/dist/agent0/capabilities/skills/adk/references/workflow-steps.md +132 -96
  49. package/dist/agent0/capabilities/skills/adk/references/workflows.md +479 -464
  50. package/dist/agent0/capabilities/skills/adk/references/zai-agent-reference.md +127 -129
  51. package/dist/agent0/capabilities/skills/adk/references/zai-complete-guide.md +255 -276
  52. package/dist/agent0/capabilities/skills/adk-debugger/SKILL.md +21 -17
  53. package/dist/agent0/capabilities/skills/adk-debugger/references/common-failures.md +25 -25
  54. package/dist/agent0/capabilities/skills/adk-debugger/references/conversation-analysis.md +49 -41
  55. package/dist/agent0/capabilities/skills/adk-debugger/references/debug-workflow.md +20 -14
  56. package/dist/agent0/capabilities/skills/adk-debugger/references/llm-debugging.md +13 -13
  57. package/dist/agent0/capabilities/skills/adk-debugger/references/trace-summarization.md +18 -18
  58. package/dist/agent0/capabilities/skills/adk-debugger/references/traces-and-logs.md +67 -67
  59. package/dist/agent0/capabilities/skills/adk-dev-console/SKILL.md +36 -36
  60. package/dist/agent0/capabilities/skills/adk-dev-console/references/agent-steps.md +14 -6
  61. package/dist/agent0/capabilities/skills/adk-dev-console/references/multi-agent-dashboard.md +13 -13
  62. package/dist/agent0/capabilities/skills/adk-dev-console/references/pages.md +18 -0
  63. package/dist/agent0/capabilities/skills/adk-docs/SKILL.md +13 -13
  64. package/dist/agent0/capabilities/skills/adk-docs/references/doc-standards.md +15 -0
  65. package/dist/agent0/capabilities/skills/adk-evals/SKILL.md +29 -23
  66. package/dist/agent0/capabilities/skills/adk-evals/references/eval-format.md +31 -23
  67. package/dist/agent0/capabilities/skills/adk-evals/references/test-patterns.md +25 -36
  68. package/dist/agent0/capabilities/skills/adk-evals/references/testing-workflow.md +6 -4
  69. package/dist/agent0/index.js +41 -19
  70. package/dist/agent0/index.js.map +7 -7
  71. package/dist/agent0/runtime/client.d.ts +2 -0
  72. package/dist/agent0/runtime/client.d.ts.map +1 -1
  73. package/dist/agent0/runtime/engine.d.ts +2 -1
  74. package/dist/agent0/runtime/engine.d.ts.map +1 -1
  75. package/dist/agent0/runtime/process.d.ts +1 -0
  76. package/dist/agent0/runtime/process.d.ts.map +1 -1
  77. package/dist/assets/manager.d.ts +3 -0
  78. package/dist/assets/manager.d.ts.map +1 -1
  79. package/dist/auth/credentials.d.ts +1 -1
  80. package/dist/bot-generator/generator.d.ts +22 -0
  81. package/dist/bot-generator/generator.d.ts.map +1 -1
  82. package/dist/bot-generator/plugin-sync.d.ts.map +1 -1
  83. package/dist/commands/base-command.d.ts +1 -0
  84. package/dist/commands/base-command.d.ts.map +1 -1
  85. package/dist/commands/bp-dev-command.d.ts +1 -1
  86. package/dist/commands/bp-dev-command.d.ts.map +1 -1
  87. package/dist/commands/bp-dev-stderr.d.ts +9 -0
  88. package/dist/commands/bp-dev-stderr.d.ts.map +1 -1
  89. package/dist/commands/index.d.ts +1 -0
  90. package/dist/commands/index.d.ts.map +1 -1
  91. package/dist/dependencies/catalog/catalog-service.d.ts +53 -0
  92. package/dist/dependencies/catalog/catalog-service.d.ts.map +1 -0
  93. package/dist/dependencies/catalog/client-factory.d.ts +33 -0
  94. package/dist/dependencies/catalog/client-factory.d.ts.map +1 -0
  95. package/dist/dependencies/catalog/integration-source.d.ts +34 -0
  96. package/dist/dependencies/catalog/integration-source.d.ts.map +1 -0
  97. package/dist/dependencies/catalog/interface-source.d.ts +23 -0
  98. package/dist/dependencies/catalog/interface-source.d.ts.map +1 -0
  99. package/dist/dependencies/catalog/plugin-source.d.ts +49 -0
  100. package/dist/dependencies/catalog/plugin-source.d.ts.map +1 -0
  101. package/dist/dependencies/catalog/resolution-cache.d.ts +76 -0
  102. package/dist/dependencies/catalog/resolution-cache.d.ts.map +1 -0
  103. package/dist/dependencies/dependency-manager.d.ts +31 -16
  104. package/dist/dependencies/dependency-manager.d.ts.map +1 -1
  105. package/dist/dependencies/errors.d.ts +2 -2
  106. package/dist/dependencies/errors.d.ts.map +1 -1
  107. package/dist/dependencies/index.d.ts +5 -4
  108. package/dist/dependencies/index.d.ts.map +1 -1
  109. package/dist/dependencies/index.js +2089 -1670
  110. package/dist/dependencies/index.js.map +37 -30
  111. package/dist/dependencies/legacy-lock-file.d.ts +15 -0
  112. package/dist/dependencies/legacy-lock-file.d.ts.map +1 -0
  113. package/dist/dependencies/migration.d.ts +19 -0
  114. package/dist/dependencies/migration.d.ts.map +1 -1
  115. package/dist/dependencies/resolvers/integration-resolver.d.ts +4 -3
  116. package/dist/dependencies/resolvers/integration-resolver.d.ts.map +1 -1
  117. package/dist/dependencies/resolvers/plugin-resolver.d.ts +4 -4
  118. package/dist/dependencies/resolvers/plugin-resolver.d.ts.map +1 -1
  119. package/dist/dependencies/snapshot-store.d.ts +59 -0
  120. package/dist/dependencies/snapshot-store.d.ts.map +1 -0
  121. package/dist/dependencies/status-resolver.d.ts +36 -0
  122. package/dist/dependencies/status-resolver.d.ts.map +1 -0
  123. package/dist/dependencies/status.d.ts +214 -0
  124. package/dist/dependencies/status.d.ts.map +1 -0
  125. package/dist/dependencies/types.d.ts +380 -29
  126. package/dist/dependencies/types.d.ts.map +1 -1
  127. package/dist/file-watcher/watcher.d.ts +21 -5
  128. package/dist/file-watcher/watcher.d.ts.map +1 -1
  129. package/dist/generators/action-types.d.ts.map +1 -1
  130. package/dist/generators/client-wrapper.d.ts.map +1 -1
  131. package/dist/index.d.ts +4 -5
  132. package/dist/index.d.ts.map +1 -1
  133. package/dist/index.js +3134 -2226
  134. package/dist/index.js.map +55 -48
  135. package/dist/integrations/config-utils.d.ts +11 -7
  136. package/dist/integrations/config-utils.d.ts.map +1 -1
  137. package/dist/integrations/hub-cache.d.ts +0 -58
  138. package/dist/integrations/hub-cache.d.ts.map +1 -1
  139. package/dist/integrations/index.d.ts +1 -3
  140. package/dist/integrations/index.d.ts.map +1 -1
  141. package/dist/integrations/manager.d.ts +19 -53
  142. package/dist/integrations/manager.d.ts.map +1 -1
  143. package/dist/interfaces/enhanced-cache.d.ts +7 -7
  144. package/dist/interfaces/enhanced-cache.d.ts.map +1 -1
  145. package/dist/interfaces/manager.d.ts +11 -17
  146. package/dist/interfaces/manager.d.ts.map +1 -1
  147. package/dist/knowledge/manager.d.ts +3 -0
  148. package/dist/knowledge/manager.d.ts.map +1 -1
  149. package/dist/plugins/index.d.ts +0 -1
  150. package/dist/plugins/index.d.ts.map +1 -1
  151. package/dist/plugins/manager.d.ts +16 -48
  152. package/dist/plugins/manager.d.ts.map +1 -1
  153. package/dist/preflight/checker.d.ts +6 -1
  154. package/dist/preflight/checker.d.ts.map +1 -1
  155. package/dist/preflight/dependency-gate.d.ts +37 -0
  156. package/dist/preflight/dependency-gate.d.ts.map +1 -0
  157. package/dist/preflight/index.d.ts +2 -1
  158. package/dist/preflight/index.d.ts.map +1 -1
  159. package/dist/preflight/types.d.ts +18 -0
  160. package/dist/preflight/types.d.ts.map +1 -1
  161. package/dist/runner/script-runner.d.ts.map +1 -1
  162. package/dist/tables/table-manager.d.ts +3 -0
  163. package/dist/tables/table-manager.d.ts.map +1 -1
  164. package/dist/templates/README.md +23 -13
  165. package/dist/templates/blank/agent.config.ts +3 -3
  166. package/dist/templates/blank/src/triggers/index.ts +1 -1
  167. package/dist/templates/botpress-desk/evals/index.eval.ts +1 -1
  168. package/dist/templates/botpress-desk/src/triggers/index.ts +1 -1
  169. package/dist/templates/crm-enrichment/README.md +3 -3
  170. package/dist/templates/crm-enrichment/agent.config.ts +2 -2
  171. package/dist/templates/crm-enrichment/src/conversations/index.ts +1 -1
  172. package/dist/templates/hello-world/agent.config.ts +3 -3
  173. package/dist/templates/hello-world/src/triggers/index.ts +1 -1
  174. package/dist/templates/knowledge-assistant/src/triggers/index.ts +1 -1
  175. package/dist/templates/template.config.json +3 -3
  176. package/dist/utils/ids.d.ts +10 -0
  177. package/dist/utils/ids.d.ts.map +1 -1
  178. package/dist/workspace/workspace-cache.d.ts +2 -1
  179. package/dist/workspace/workspace-cache.d.ts.map +1 -1
  180. package/package.json +3 -3
  181. package/dist/agent-project/lock-to-dependencies.d.ts +0 -11
  182. package/dist/agent-project/lock-to-dependencies.d.ts.map +0 -1
  183. package/dist/dependencies/lock-file.d.ts +0 -15
  184. package/dist/dependencies/lock-file.d.ts.map +0 -1
  185. package/dist/integrations/enhanced-cache.d.ts +0 -53
  186. package/dist/integrations/enhanced-cache.d.ts.map +0 -1
  187. package/dist/plugins/enhanced-cache.d.ts +0 -53
  188. package/dist/plugins/enhanced-cache.d.ts.map +0 -1
  189. package/dist/templates/blank/package.json +0 -17
  190. package/dist/templates/blank/tsconfig.json +0 -25
  191. package/dist/templates/botpress-desk/package.json +0 -17
  192. package/dist/templates/crm-enrichment/package.json +0 -18
  193. package/dist/templates/crm-enrichment/tsconfig.json +0 -25
  194. package/dist/templates/hello-world/package.json +0 -18
  195. package/dist/templates/hello-world/tsconfig.json +0 -25
  196. package/dist/templates/knowledge-assistant/package.json +0 -18
  197. package/dist/templates/knowledge-assistant/tsconfig.json +0 -25
  198. package/dist/templates/slack-triage/package.json +0 -18
  199. package/dist/templates/slack-triage/tsconfig.json +0 -25
@@ -69,6 +69,7 @@ adk status --format json
69
69
  ```
70
70
 
71
71
  **What this tells you:**
72
+
72
73
  - Project name and location
73
74
  - Every registered primitive with name, file path, and description
74
75
  - Integration status — which are configured and which are missing fields
@@ -85,6 +86,7 @@ cat agent.config.ts
85
86
  ```
86
87
 
87
88
  **What this tells you:**
89
+
88
90
  - Model configuration (`defaultModels`)
89
91
  - State schemas (`user.state`, `bot.state`, `conversation.state`)
90
92
  - Integration versions and inline config
@@ -131,6 +133,7 @@ cat agent.local.json
131
133
  The `name` and `description` fields in `agent.config.ts`.
132
134
 
133
135
  **How to explain:**
136
+
134
137
  - The `name` identifies the bot in the Botpress Cloud dashboard and CLI output.
135
138
  - The `description` is optional — it documents the bot's purpose.
136
139
 
@@ -139,6 +142,7 @@ The `name` and `description` fields in `agent.config.ts`.
139
142
  > This is **customer-support-bot** — a customer support assistant. The name is used as the bot identifier in Botpress Cloud.
140
143
 
141
144
  **Potential issues:**
145
+
142
146
  - Missing `description` — not critical, but worth adding for documentation.
143
147
  - Name with spaces or special characters — should be kebab-case.
144
148
 
@@ -148,10 +152,10 @@ The `defaultModels` object controls which AI models power the bot.
148
152
 
149
153
  **Two model slots:**
150
154
 
151
- | Slot | Purpose | Used By |
152
- |------|---------|---------|
153
- | `autonomous` | Agentic reasoning — conversation handling, tool selection, multi-step logic | `execute()` in conversations and workflows |
154
- | `zai` | Utility AI operations — extraction, classification, summarization | `adk.zai.extract()`, `adk.zai.check()`, `adk.zai.text()`, etc. |
155
+ | Slot | Purpose | Used By |
156
+ | ------------ | --------------------------------------------------------------------------- | -------------------------------------------------------------- |
157
+ | `autonomous` | Agentic reasoning — conversation handling, tool selection, multi-step logic | `execute()` in conversations and workflows |
158
+ | `zai` | Utility AI operations — extraction, classification, summarization | `adk.zai.extract()`, `adk.zai.check()`, `adk.zai.text()`, etc. |
155
159
 
156
160
  **How to explain model choices:**
157
161
 
@@ -166,21 +170,23 @@ defaultModels: {
166
170
 
167
171
  **Common configurations and tradeoffs:**
168
172
 
169
- | Configuration | Tradeoff |
170
- |---------------|----------|
171
- | `autonomous: "openai:gpt-4o"` | High quality, higher cost and latency |
172
- | `autonomous: "openai:gpt-4o-mini"` | Fast and cheap, less capable for complex reasoning |
173
- | `autonomous: "fast"` | Zai shortcut — fastest/cheapest available model |
174
- | `autonomous: "best"` | Zai shortcut — highest quality available model |
175
- | `autonomous: "anthropic:claude-3-5-sonnet"` | Strong reasoning, different provider |
176
- | `zai: "openai:gpt-4o-mini"` | Good default for utility tasks |
177
- | Fallback arrays like `["openai:gpt-4o", "anthropic:claude-3-5-sonnet"]` | Automatic fallback if first model is unavailable |
173
+ | Configuration | Tradeoff |
174
+ | ----------------------------------------------------------------------- | -------------------------------------------------- |
175
+ | `autonomous: "openai:gpt-4o"` | High quality, higher cost and latency |
176
+ | `autonomous: "openai:gpt-4o-mini"` | Fast and cheap, less capable for complex reasoning |
177
+ | `autonomous: "fast"` | Zai shortcut — fastest/cheapest available model |
178
+ | `autonomous: "best"` | Zai shortcut — highest quality available model |
179
+ | `autonomous: "anthropic:claude-3-5-sonnet"` | Strong reasoning, different provider |
180
+ | `zai: "openai:gpt-4o-mini"` | Good default for utility tasks |
181
+ | Fallback arrays like `["openai:gpt-4o", "anthropic:claude-3-5-sonnet"]` | Automatic fallback if first model is unavailable |
178
182
 
179
183
  **If `defaultModels` is not set**, the ADK uses these defaults:
184
+
180
185
  - `zai`: `"openai:gpt-4.1-2025-04-14"`
181
186
  - `autonomous`: `"openai:gpt-4.1-mini-2025-04-14"`
182
187
 
183
188
  **Potential issues:**
189
+
184
190
  - No `defaultModels` set — the bot uses ADK defaults, which may not be optimal.
185
191
  - Both slots set to `"fast"` — fine for development, but may underperform in production for complex conversations.
186
192
  - Both slots set to `"best"` — high quality but expensive; consider using `"best"` only for `autonomous`.
@@ -192,6 +198,7 @@ The `dependencies.integrations` section defines which external services the bot
192
198
  **How to explain:**
193
199
 
194
200
  For each integration, describe:
201
+
195
202
  1. **What it is** — the platform or service it connects to
196
203
  2. **What it provides** — channels (for messaging), actions (for API calls), events (for triggers)
197
204
  3. **Whether it's configured** — check the `status` field from `adk status`
@@ -227,6 +234,7 @@ adk info slack
227
234
  ```
228
235
 
229
236
  **Potential issues:**
237
+
230
238
  - Integration with `status: "unconfigured"` and `missing` fields — needs configuration before it works.
231
239
  - Integration using hardcoded secrets instead of the ADK secrets API — security risk.
232
240
  - Integration with `enabled: false` — installed but not active.
@@ -237,11 +245,11 @@ State schemas define what data the bot persists across interactions.
237
245
 
238
246
  **Three state scopes:**
239
247
 
240
- | Scope | Persisted Per | Typical Use |
241
- |-------|--------------|-------------|
242
- | `user.state` | User | Preferences, profile data, onboarding progress |
243
- | `bot.state` | Bot (global) | Feature flags, counters, maintenance mode |
244
- | `conversation.state` | Conversation | Context within a single conversation thread |
248
+ | Scope | Persisted Per | Typical Use |
249
+ | -------------------- | ------------- | ---------------------------------------------- |
250
+ | `user.state` | User | Preferences, profile data, onboarding progress |
251
+ | `bot.state` | Bot (global) | Feature flags, counters, maintenance mode |
252
+ | `conversation.state` | Conversation | Context within a single conversation thread |
245
253
 
246
254
  **How to explain:**
247
255
 
@@ -263,18 +271,21 @@ bot: {
263
271
  ```
264
272
 
265
273
  > **User state** tracks per-user data:
274
+ >
266
275
  > - `name` (optional string) — The user's name, collected during conversation
267
276
  > - `department` (optional string) — The user's department
268
277
  > - `role` (optional string) — The user's job role
269
278
  > - `age` (number, defaults to 10) — The user's age
270
279
  >
271
280
  > **Bot state** tracks global data:
281
+ >
272
282
  > - `version` (number, defaults to 0) — Bot configuration version
273
283
  > - `ticketCounter` (number, defaults to 0) — Running count of tickets created
274
284
  >
275
285
  > No conversation state is defined — conversation-scoped data is not being tracked.
276
286
 
277
287
  **Potential issues:**
288
+
278
289
  - No `.default()` on required fields — will fail if state hasn't been initialized.
279
290
  - Large state objects — can slow down read/write operations.
280
291
  - Sensitive data in state (emails, tokens) — consider whether it needs to be stored.
@@ -286,12 +297,14 @@ Check the `secrets` block in `agent.config.ts` for declared secrets, and look fo
286
297
  **How to explain:**
287
298
 
288
299
  > Your config declares these secrets:
300
+ >
289
301
  > - `SLACK_BOT_TOKEN` — Used to authenticate the Slack integration
290
302
  > - `LINEAR_API_KEY` — Used to authenticate the Linear integration
291
303
  >
292
304
  > Secrets are managed via `adk secrets` and injected at runtime. Make sure they're set for both dev and production environments.
293
305
 
294
306
  **Potential issues:**
307
+
295
308
  - Hardcoded secrets in `agent.config.ts` — should use the ADK secrets API instead.
296
309
  - Declared secrets that aren't set — the integration won't work at runtime.
297
310
 
@@ -301,21 +314,22 @@ The primitives from `adk status` show what the bot can actually do.
301
314
 
302
315
  **How to explain each type:**
303
316
 
304
- | Primitive | What It Means |
305
- |-----------|--------------|
306
- | **Actions** | Functions callable by the bot or external APIs. Each action has typed input/output. |
307
- | **Tools** | AI-callable tools — these are what the LLM can invoke during autonomous reasoning. |
308
- | **Workflows** | Long-running, resumable processes with step-based execution. |
309
- | **Conversations** | Message handlers — routes incoming messages by channel. |
310
- | **Triggers** | Event-driven handlers — react to specific events (e.g., new user, webhook). |
311
- | **Tables** | Structured data storage with optional semantic search. |
312
- | **Knowledge** | RAG knowledge bases — documents the bot can search and cite. |
317
+ | Primitive | What It Means |
318
+ | ----------------- | ----------------------------------------------------------------------------------- |
319
+ | **Actions** | Functions callable by the bot or external APIs. Each action has typed input/output. |
320
+ | **Tools** | AI-callable tools — these are what the LLM can invoke during autonomous reasoning. |
321
+ | **Workflows** | Long-running, resumable processes with step-based execution. |
322
+ | **Conversations** | Message handlers — routes incoming messages by channel. |
323
+ | **Triggers** | Event-driven handlers — react to specific events (e.g., new user, webhook). |
324
+ | **Tables** | Structured data storage with optional semantic search. |
325
+ | **Knowledge** | RAG knowledge bases — documents the bot can search and cite. |
313
326
 
314
327
  **Example explanation from status output:**
315
328
 
316
329
  > Your bot has **3 actions**, **2 tools**, **2 workflows**, **1 conversation handler**, **no triggers**, **1 table**, and **1 knowledge base**.
317
330
  >
318
331
  > **What it can do:**
332
+ >
319
333
  > - Look up customers, send invoices, and triage tickets (actions)
320
334
  > - Search docs and look up CRM records autonomously (tools — the LLM decides when to call these)
321
335
  > - Escalate urgent tickets and schedule follow-ups (workflows — long-running processes)
@@ -342,16 +356,19 @@ Combine all sources into a concise summary:
342
356
  > It uses **gpt-4o** for conversations and **gpt-4o-mini** for utility AI tasks.
343
357
  >
344
358
  > **Capabilities:**
359
+ >
345
360
  > - Looks up customers, sends invoices, and triages support tickets
346
361
  > - Can autonomously search documentation and look up CRM records
347
362
  > - Runs escalation and follow-up workflows for ticket management
348
363
  > - Stores contacts in a table and uses an FAQ knowledge base for answers
349
364
  >
350
365
  > **State tracking:**
366
+ >
351
367
  > - Tracks user preferences (language, timezone, account tier)
352
368
  > - Maintains global counters and feature flags
353
369
  >
354
370
  > **Issues to address:**
371
+ >
355
372
  > - The `browser` integration is missing its `apiKey` configuration
356
373
 
357
374
  ### Section-Specific Explanation
@@ -362,16 +379,16 @@ When the developer asks about a specific section, read the relevant part of `age
362
379
 
363
380
  When reviewing the config, check for:
364
381
 
365
- | Check | How to Detect | Severity |
366
- |-------|--------------|----------|
367
- | Unconfigured integrations | `status: "unconfigured"` in `adk status` output | High — integration won't work |
368
- | Hardcoded secrets | String literals in `config` blocks instead of ADK secrets API | High — security risk |
369
- | Missing default models | No `defaultModels` in `agent.config.ts` | Low — ADK defaults apply |
370
- | No conversation handler | `conversations.count === 0` in status | High — bot can't respond to messages |
371
- | No tools registered | `tools.count === 0` in status | Medium — LLM can't take autonomous actions |
372
- | No knowledge base | `knowledge.count === 0` in status | Low — bot relies only on tools and actions |
373
- | State without defaults | `z.object({...})` without `.default()` | Medium — may fail on first access |
374
- | Unused integrations | Integration installed but no conversation handler or action references it | Low — wasted dependency |
382
+ | Check | How to Detect | Severity |
383
+ | ------------------------- | ------------------------------------------------------------------------- | ------------------------------------------ |
384
+ | Unconfigured integrations | `status: "unconfigured"` in `adk status` output | High — integration won't work |
385
+ | Hardcoded secrets | String literals in `config` blocks instead of ADK secrets API | High — security risk |
386
+ | Missing default models | No `defaultModels` in `agent.config.ts` | Low — ADK defaults apply |
387
+ | No conversation handler | `conversations.count === 0` in status | High — bot can't respond to messages |
388
+ | No tools registered | `tools.count === 0` in status | Medium — LLM can't take autonomous actions |
389
+ | No knowledge base | `knowledge.count === 0` in status | Low — bot relies only on tools and actions |
390
+ | State without defaults | `z.object({...})` without `.default()` | Medium — may fail on first access |
391
+ | Unused integrations | Integration installed but no conversation handler or action references it | Low — wasted dependency |
375
392
 
376
393
  ### Suggesting Improvements
377
394