@botpress/adk 1.19.0-beta.9 → 2.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-init/agent-project-generator.d.ts +5 -1
- package/dist/agent-init/agent-project-generator.d.ts.map +1 -1
- package/dist/agent-project/agent-project.d.ts +3 -3
- package/dist/agent-project/agent-project.d.ts.map +1 -1
- package/dist/agent-project/agent-resolver.d.ts.map +1 -1
- package/dist/agent-project/config-writer.d.ts +1 -1
- package/dist/agent-project/dependency-state-to-dependencies.d.ts +11 -0
- package/dist/agent-project/dependency-state-to-dependencies.d.ts.map +1 -0
- package/dist/agent-project/types.d.ts +9 -4
- package/dist/agent-project/types.d.ts.map +1 -1
- package/dist/agent0/capabilities/commands/adk-build.md +6 -5
- package/dist/agent0/capabilities/commands/adk-debug.md +1 -1
- package/dist/agent0/capabilities/commands/adk-dev-console.md +1 -1
- package/dist/agent0/capabilities/commands/adk-document.md +10 -2
- package/dist/agent0/capabilities/commands/adk-eval.md +1 -1
- package/dist/agent0/capabilities/commands/adk-explain.md +2 -2
- package/dist/agent0/capabilities/commands/adk-init.md +2 -2
- package/dist/agent0/capabilities/commands/adk-ship.md +1 -1
- package/dist/agent0/capabilities/commands/adk-test.md +3 -3
- package/dist/agent0/capabilities/commands/adk-validate.md +3 -3
- package/dist/agent0/capabilities/skills/adk/SKILL.md +21 -21
- package/dist/agent0/capabilities/skills/adk/references/actions.md +245 -239
- package/dist/agent0/capabilities/skills/adk/references/advanced-patterns.md +185 -218
- package/dist/agent0/capabilities/skills/adk/references/agent-config.md +74 -71
- package/dist/agent0/capabilities/skills/adk/references/assets.md +45 -48
- package/dist/agent0/capabilities/skills/adk/references/autonomous-execution.md +40 -46
- package/dist/agent0/capabilities/skills/adk/references/cli.md +17 -7
- package/dist/agent0/capabilities/skills/adk/references/context-api.md +98 -94
- package/dist/agent0/capabilities/skills/adk/references/conversation-lifecycle.md +65 -62
- package/dist/agent0/capabilities/skills/adk/references/conversations.md +395 -385
- package/dist/agent0/capabilities/skills/adk/references/custom-components.md +1 -1
- package/dist/agent0/capabilities/skills/adk/references/desk.md +236 -234
- package/dist/agent0/capabilities/skills/adk/references/explain-config.md +54 -37
- package/dist/agent0/capabilities/skills/adk/references/files.md +301 -306
- package/dist/agent0/capabilities/skills/adk/references/integration-actions.md +211 -214
- package/dist/agent0/capabilities/skills/adk/references/integrations.md +33 -31
- package/dist/agent0/capabilities/skills/adk/references/interfaces.md +13 -12
- package/dist/agent0/capabilities/skills/adk/references/knowledge-bases.md +98 -111
- package/dist/agent0/capabilities/skills/adk/references/mcp-server.md +6 -0
- package/dist/agent0/capabilities/skills/adk/references/messages.md +280 -256
- package/dist/agent0/capabilities/skills/adk/references/model-configuration.md +52 -49
- package/dist/agent0/capabilities/skills/adk/references/patterns-mistakes.md +102 -101
- package/dist/agent0/capabilities/skills/adk/references/plugins.md +15 -15
- package/dist/agent0/capabilities/skills/adk/references/tables.md +204 -210
- package/dist/agent0/capabilities/skills/adk/references/tags.md +141 -143
- package/dist/agent0/capabilities/skills/adk/references/tools.md +191 -199
- package/dist/agent0/capabilities/skills/adk/references/triggers.md +331 -336
- package/dist/agent0/capabilities/skills/adk/references/workflow-steps.md +132 -96
- package/dist/agent0/capabilities/skills/adk/references/workflows.md +479 -464
- package/dist/agent0/capabilities/skills/adk/references/zai-agent-reference.md +127 -129
- package/dist/agent0/capabilities/skills/adk/references/zai-complete-guide.md +255 -276
- package/dist/agent0/capabilities/skills/adk-debugger/SKILL.md +21 -17
- package/dist/agent0/capabilities/skills/adk-debugger/references/common-failures.md +25 -25
- package/dist/agent0/capabilities/skills/adk-debugger/references/conversation-analysis.md +49 -41
- package/dist/agent0/capabilities/skills/adk-debugger/references/debug-workflow.md +20 -14
- package/dist/agent0/capabilities/skills/adk-debugger/references/llm-debugging.md +13 -13
- package/dist/agent0/capabilities/skills/adk-debugger/references/trace-summarization.md +18 -18
- package/dist/agent0/capabilities/skills/adk-debugger/references/traces-and-logs.md +67 -67
- package/dist/agent0/capabilities/skills/adk-dev-console/SKILL.md +36 -36
- package/dist/agent0/capabilities/skills/adk-dev-console/references/agent-steps.md +14 -6
- package/dist/agent0/capabilities/skills/adk-dev-console/references/multi-agent-dashboard.md +13 -13
- package/dist/agent0/capabilities/skills/adk-dev-console/references/pages.md +18 -0
- package/dist/agent0/capabilities/skills/adk-docs/SKILL.md +13 -13
- package/dist/agent0/capabilities/skills/adk-docs/references/doc-standards.md +15 -0
- package/dist/agent0/capabilities/skills/adk-evals/SKILL.md +29 -23
- package/dist/agent0/capabilities/skills/adk-evals/references/eval-format.md +31 -23
- package/dist/agent0/capabilities/skills/adk-evals/references/test-patterns.md +25 -36
- package/dist/agent0/capabilities/skills/adk-evals/references/testing-workflow.md +6 -4
- package/dist/agent0/index.js +41 -19
- package/dist/agent0/index.js.map +7 -7
- package/dist/agent0/runtime/client.d.ts +2 -0
- package/dist/agent0/runtime/client.d.ts.map +1 -1
- package/dist/agent0/runtime/engine.d.ts +2 -1
- package/dist/agent0/runtime/engine.d.ts.map +1 -1
- package/dist/agent0/runtime/process.d.ts +1 -0
- package/dist/agent0/runtime/process.d.ts.map +1 -1
- package/dist/assets/manager.d.ts +3 -0
- package/dist/assets/manager.d.ts.map +1 -1
- package/dist/auth/credentials.d.ts +1 -1
- package/dist/bot-generator/generator.d.ts +22 -0
- package/dist/bot-generator/generator.d.ts.map +1 -1
- package/dist/bot-generator/plugin-sync.d.ts.map +1 -1
- package/dist/commands/base-command.d.ts +1 -0
- package/dist/commands/base-command.d.ts.map +1 -1
- package/dist/commands/bp-dev-command.d.ts +1 -1
- package/dist/commands/bp-dev-command.d.ts.map +1 -1
- package/dist/commands/bp-dev-stderr.d.ts +9 -0
- package/dist/commands/bp-dev-stderr.d.ts.map +1 -1
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/dependencies/catalog/catalog-service.d.ts +53 -0
- package/dist/dependencies/catalog/catalog-service.d.ts.map +1 -0
- package/dist/dependencies/catalog/client-factory.d.ts +33 -0
- package/dist/dependencies/catalog/client-factory.d.ts.map +1 -0
- package/dist/dependencies/catalog/integration-source.d.ts +34 -0
- package/dist/dependencies/catalog/integration-source.d.ts.map +1 -0
- package/dist/dependencies/catalog/interface-source.d.ts +23 -0
- package/dist/dependencies/catalog/interface-source.d.ts.map +1 -0
- package/dist/dependencies/catalog/plugin-source.d.ts +49 -0
- package/dist/dependencies/catalog/plugin-source.d.ts.map +1 -0
- package/dist/dependencies/catalog/resolution-cache.d.ts +76 -0
- package/dist/dependencies/catalog/resolution-cache.d.ts.map +1 -0
- package/dist/dependencies/dependency-manager.d.ts +31 -16
- package/dist/dependencies/dependency-manager.d.ts.map +1 -1
- package/dist/dependencies/errors.d.ts +2 -2
- package/dist/dependencies/errors.d.ts.map +1 -1
- package/dist/dependencies/index.d.ts +5 -4
- package/dist/dependencies/index.d.ts.map +1 -1
- package/dist/dependencies/index.js +2089 -1670
- package/dist/dependencies/index.js.map +37 -30
- package/dist/dependencies/legacy-lock-file.d.ts +15 -0
- package/dist/dependencies/legacy-lock-file.d.ts.map +1 -0
- package/dist/dependencies/migration.d.ts +19 -0
- package/dist/dependencies/migration.d.ts.map +1 -1
- package/dist/dependencies/resolvers/integration-resolver.d.ts +4 -3
- package/dist/dependencies/resolvers/integration-resolver.d.ts.map +1 -1
- package/dist/dependencies/resolvers/plugin-resolver.d.ts +4 -4
- package/dist/dependencies/resolvers/plugin-resolver.d.ts.map +1 -1
- package/dist/dependencies/snapshot-store.d.ts +59 -0
- package/dist/dependencies/snapshot-store.d.ts.map +1 -0
- package/dist/dependencies/status-resolver.d.ts +36 -0
- package/dist/dependencies/status-resolver.d.ts.map +1 -0
- package/dist/dependencies/status.d.ts +214 -0
- package/dist/dependencies/status.d.ts.map +1 -0
- package/dist/dependencies/types.d.ts +380 -29
- package/dist/dependencies/types.d.ts.map +1 -1
- package/dist/file-watcher/watcher.d.ts +21 -5
- package/dist/file-watcher/watcher.d.ts.map +1 -1
- package/dist/generators/action-types.d.ts.map +1 -1
- package/dist/generators/client-wrapper.d.ts.map +1 -1
- package/dist/index.d.ts +4 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3134 -2226
- package/dist/index.js.map +55 -48
- package/dist/integrations/config-utils.d.ts +11 -7
- package/dist/integrations/config-utils.d.ts.map +1 -1
- package/dist/integrations/hub-cache.d.ts +0 -58
- package/dist/integrations/hub-cache.d.ts.map +1 -1
- package/dist/integrations/index.d.ts +1 -3
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/manager.d.ts +19 -53
- package/dist/integrations/manager.d.ts.map +1 -1
- package/dist/interfaces/enhanced-cache.d.ts +7 -7
- package/dist/interfaces/enhanced-cache.d.ts.map +1 -1
- package/dist/interfaces/manager.d.ts +11 -17
- package/dist/interfaces/manager.d.ts.map +1 -1
- package/dist/knowledge/manager.d.ts +3 -0
- package/dist/knowledge/manager.d.ts.map +1 -1
- package/dist/plugins/index.d.ts +0 -1
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/manager.d.ts +16 -48
- package/dist/plugins/manager.d.ts.map +1 -1
- package/dist/preflight/checker.d.ts +6 -1
- package/dist/preflight/checker.d.ts.map +1 -1
- package/dist/preflight/dependency-gate.d.ts +37 -0
- package/dist/preflight/dependency-gate.d.ts.map +1 -0
- package/dist/preflight/index.d.ts +2 -1
- package/dist/preflight/index.d.ts.map +1 -1
- package/dist/preflight/types.d.ts +18 -0
- package/dist/preflight/types.d.ts.map +1 -1
- package/dist/runner/script-runner.d.ts.map +1 -1
- package/dist/tables/table-manager.d.ts +3 -0
- package/dist/tables/table-manager.d.ts.map +1 -1
- package/dist/templates/README.md +23 -13
- package/dist/templates/blank/agent.config.ts +3 -3
- package/dist/templates/blank/src/triggers/index.ts +1 -1
- package/dist/templates/botpress-desk/evals/index.eval.ts +1 -1
- package/dist/templates/botpress-desk/src/triggers/index.ts +1 -1
- package/dist/templates/crm-enrichment/README.md +3 -3
- package/dist/templates/crm-enrichment/agent.config.ts +2 -2
- package/dist/templates/crm-enrichment/src/conversations/index.ts +1 -1
- package/dist/templates/hello-world/agent.config.ts +3 -3
- package/dist/templates/hello-world/src/triggers/index.ts +1 -1
- package/dist/templates/knowledge-assistant/src/triggers/index.ts +1 -1
- package/dist/templates/template.config.json +3 -3
- package/dist/utils/ids.d.ts +10 -0
- package/dist/utils/ids.d.ts.map +1 -1
- package/dist/workspace/workspace-cache.d.ts +2 -1
- package/dist/workspace/workspace-cache.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/agent-project/lock-to-dependencies.d.ts +0 -11
- package/dist/agent-project/lock-to-dependencies.d.ts.map +0 -1
- package/dist/dependencies/lock-file.d.ts +0 -15
- package/dist/dependencies/lock-file.d.ts.map +0 -1
- package/dist/integrations/enhanced-cache.d.ts +0 -53
- package/dist/integrations/enhanced-cache.d.ts.map +0 -1
- package/dist/plugins/enhanced-cache.d.ts +0 -53
- package/dist/plugins/enhanced-cache.d.ts.map +0 -1
- package/dist/templates/blank/package.json +0 -17
- package/dist/templates/blank/tsconfig.json +0 -25
- package/dist/templates/botpress-desk/package.json +0 -17
- package/dist/templates/crm-enrichment/package.json +0 -18
- package/dist/templates/crm-enrichment/tsconfig.json +0 -25
- package/dist/templates/hello-world/package.json +0 -18
- package/dist/templates/hello-world/tsconfig.json +0 -25
- package/dist/templates/knowledge-assistant/package.json +0 -18
- package/dist/templates/knowledge-assistant/tsconfig.json +0 -25
- package/dist/templates/slack-triage/package.json +0 -18
- package/dist/templates/slack-triage/tsconfig.json +0 -25
|
@@ -26,6 +26,7 @@ Use this skill when the developer asks about:
|
|
|
26
26
|
- **Post-fix verification** — confirming a fix worked, writing regression evals
|
|
27
27
|
|
|
28
28
|
**Trigger questions:**
|
|
29
|
+
|
|
29
30
|
- "My bot isn't responding"
|
|
30
31
|
- "The wrong tool was called"
|
|
31
32
|
- "My workflow is stuck"
|
|
@@ -49,14 +50,14 @@ Use this skill when the developer asks about:
|
|
|
49
50
|
|
|
50
51
|
## Available Documentation
|
|
51
52
|
|
|
52
|
-
| File
|
|
53
|
-
|
|
54
|
-
| `references/traces-and-logs.md`
|
|
55
|
-
| `references/common-failures.md`
|
|
56
|
-
| `references/llm-debugging.md`
|
|
57
|
-
| `references/debug-workflow.md`
|
|
58
|
-
| `references/trace-summarization.md`
|
|
59
|
-
| `references/conversation-analysis.md` | How to summarize and explain full conversations — listing conversations, timeline analysis, correlating with traces, common patterns
|
|
53
|
+
| File | Contents |
|
|
54
|
+
| ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
55
|
+
| `references/traces-and-logs.md` | CLI debugging tools, log querying, trace structure, span types, `onTrace` hooks, reproduction with `adk chat` |
|
|
56
|
+
| `references/common-failures.md` | Runtime failure patterns — validation, bot not responding, tool errors, workflow stuck, integration failures, build errors, config confusion |
|
|
57
|
+
| `references/llm-debugging.md` | LLM behavior issues — wrong tool, hallucinated params, refusals, token limits, looping, reading model reasoning |
|
|
58
|
+
| `references/debug-workflow.md` | The systematic 8-step debug loop: validate → reproduce → logs → traces → classify → fix → verify → prevent |
|
|
59
|
+
| `references/trace-summarization.md` | How to fetch, walk, and summarize traces as free-form natural-language narratives — adapting depth to context |
|
|
60
|
+
| `references/conversation-analysis.md` | How to summarize and explain full conversations — listing conversations, timeline analysis, correlating with traces, common patterns |
|
|
60
61
|
|
|
61
62
|
## How to Answer
|
|
62
63
|
|
|
@@ -95,12 +96,12 @@ adk conversations show <id> --include-llm --format json # timeline with LLM rea
|
|
|
95
96
|
|
|
96
97
|
### Span Types
|
|
97
98
|
|
|
98
|
-
| Type
|
|
99
|
-
|
|
100
|
-
| `think`
|
|
101
|
-
| `tool_call`
|
|
102
|
-
| `code_execution_exception` | Runtime error — message and stack trace
|
|
103
|
-
| `end`
|
|
99
|
+
| Type | What It Shows |
|
|
100
|
+
| -------------------------- | ---------------------------------------------------- |
|
|
101
|
+
| `think` | LLM reasoning — why it chose an action |
|
|
102
|
+
| `tool_call` | Tool invocation — name, input, output, success/error |
|
|
103
|
+
| `code_execution_exception` | Runtime error — message and stack trace |
|
|
104
|
+
| `end` | Conversation turn completed |
|
|
104
105
|
|
|
105
106
|
---
|
|
106
107
|
|
|
@@ -177,8 +178,8 @@ adk logs --format json # 50 entries of everything
|
|
|
177
178
|
// CORRECT — structured, automated trace analysis
|
|
178
179
|
hooks: {
|
|
179
180
|
onTrace: ({ trace }) => {
|
|
180
|
-
if (trace.type ===
|
|
181
|
-
console.error(`[TOOL ERROR] ${trace.tool_name}`, trace.error)
|
|
181
|
+
if (trace.type === 'tool_call' && !trace.success) {
|
|
182
|
+
console.error(`[TOOL ERROR] ${trace.tool_name}`, trace.error)
|
|
182
183
|
}
|
|
183
184
|
}
|
|
184
185
|
}
|
|
@@ -189,7 +190,7 @@ hooks: {
|
|
|
189
190
|
```typescript
|
|
190
191
|
// WRONG — console.log in handlers misses the structured trace data
|
|
191
192
|
handler: async (input) => {
|
|
192
|
-
console.log(
|
|
193
|
+
console.log('tool called') // not useful for debugging
|
|
193
194
|
}
|
|
194
195
|
```
|
|
195
196
|
|
|
@@ -217,17 +218,20 @@ export default new Eval({
|
|
|
217
218
|
## Example Questions
|
|
218
219
|
|
|
219
220
|
**Basic:**
|
|
221
|
+
|
|
220
222
|
- "My bot isn't responding — how do I figure out why?"
|
|
221
223
|
- "How do I check for errors in my ADK project?"
|
|
222
224
|
- "What's the difference between agent.json and agent.local.json?"
|
|
223
225
|
|
|
224
226
|
**Intermediate:**
|
|
227
|
+
|
|
225
228
|
- "The bot called createTicket instead of lookupTicket — how do I fix this?"
|
|
226
229
|
- "My workflow starts but the second step never runs"
|
|
227
230
|
- "How do I see what the LLM was thinking when it made a decision?"
|
|
228
231
|
- "Integration actions are failing with auth errors"
|
|
229
232
|
|
|
230
233
|
**Advanced:**
|
|
234
|
+
|
|
231
235
|
- "How do I set up onTrace hooks for automated error detection?"
|
|
232
236
|
- "The model loops on the same tool call — how do I add a guardrail?"
|
|
233
237
|
- "How do I monitor tool call performance with timing metrics?"
|
|
@@ -50,10 +50,10 @@ adk chat --single "Hello" --format json
|
|
|
50
50
|
|
|
51
51
|
**Common causes:**
|
|
52
52
|
|
|
53
|
-
| Cause
|
|
54
|
-
|
|
55
|
-
| No dev bot created
|
|
56
|
-
| Integration not configured | Check Dev Console at localhost:3001 — look for unconfigured integrations
|
|
53
|
+
| Cause | How to Verify |
|
|
54
|
+
| -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
55
|
+
| No dev bot created | Check that `agent.local.json` has `devId` (set automatically on the first `adk dev` run, or manually via `adk link --local`). If missing, run `adk dev` at least once to create the dev bot. |
|
|
56
|
+
| Integration not configured | Check Dev Console at localhost:3001 — look for unconfigured integrations |
|
|
57
57
|
|
|
58
58
|
**Fix:** Work through the checklist top to bottom. Most "bot not responding" issues are missing config or a stopped dev server.
|
|
59
59
|
|
|
@@ -73,11 +73,11 @@ Look for `tool_call` spans with `success: false`. Some tools could be workflows
|
|
|
73
73
|
|
|
74
74
|
**Common causes:**
|
|
75
75
|
|
|
76
|
-
| Cause
|
|
77
|
-
|
|
78
|
-
| Handler throws an error
|
|
79
|
-
| Input schema mismatch
|
|
80
|
-
| Integration auth expired
|
|
76
|
+
| Cause | Trace Evidence |
|
|
77
|
+
| -------------------------- | ----------------------------------------------------- |
|
|
78
|
+
| Handler throws an error | `error` field has the exception message |
|
|
79
|
+
| Input schema mismatch | `error` mentions validation or type error |
|
|
80
|
+
| Integration auth expired | `error` mentions 401, unauthorized, or token expired |
|
|
81
81
|
| Missing integration config | `error` mentions missing configuration or credentials |
|
|
82
82
|
|
|
83
83
|
**Fix:**
|
|
@@ -131,13 +131,13 @@ Also check the Dev Console at localhost:3001 for integration status.
|
|
|
131
131
|
|
|
132
132
|
**Common causes:**
|
|
133
133
|
|
|
134
|
-
| Cause
|
|
135
|
-
|
|
136
|
-
| Auth expired or missing
|
|
137
|
-
| Rate limited
|
|
138
|
-
| Wrong config values
|
|
139
|
-
| Events not registered in dev mode | Events work in production but not locally — re-run `adk dev`
|
|
140
|
-
| Channel routing misconfigured
|
|
134
|
+
| Cause | How to Identify |
|
|
135
|
+
| --------------------------------- | ------------------------------------------------------------------- |
|
|
136
|
+
| Auth expired or missing | Error mentions 401, unauthorized, or token |
|
|
137
|
+
| Rate limited | Error mentions 429 or rate limit |
|
|
138
|
+
| Wrong config values | Integration actions fail with config-related errors |
|
|
139
|
+
| Events not registered in dev mode | Events work in production but not locally — re-run `adk dev` |
|
|
140
|
+
| Channel routing misconfigured | Messages arrive but aren't routed to the right conversation handler |
|
|
141
141
|
|
|
142
142
|
**Fix:**
|
|
143
143
|
|
|
@@ -204,21 +204,21 @@ Look for spans with type `code_execution_exception`.
|
|
|
204
204
|
|
|
205
205
|
### How the files work
|
|
206
206
|
|
|
207
|
-
| File
|
|
208
|
-
|
|
209
|
-
| `agent.json`
|
|
207
|
+
| File | Purpose | Git Status | Created By |
|
|
208
|
+
| ------------------ | ---------------------------------------------------------- | ---------- | ------------------------------------------------------------ |
|
|
209
|
+
| `agent.json` | Primary config: `botId`, `workspaceId`, `apiUrl` | Committed | `adk link` |
|
|
210
210
|
| `agent.local.json` | Local overrides: `botId`, `workspaceId`, `apiUrl`, `devId` | Gitignored | `adk dev` or `adk link --local` (sets `devId`), manual edits |
|
|
211
211
|
|
|
212
212
|
**`agent.local.json` fields take precedence over `agent.json` fields.** If both files define `botId`, the local one wins.
|
|
213
213
|
|
|
214
214
|
### Common issues
|
|
215
215
|
|
|
216
|
-
| Issue
|
|
217
|
-
|
|
218
|
-
| Wrong bot ID used
|
|
219
|
-
| `adk chat` fails with "no devId"
|
|
220
|
-
| Different behavior on teammate's machine | They have different `agent.local.json`
|
|
221
|
-
| Deploy targets wrong bot
|
|
216
|
+
| Issue | Cause | Fix |
|
|
217
|
+
| ---------------------------------------- | ----------------------------------------------- | ------------------------------------------------------ |
|
|
218
|
+
| Wrong bot ID used | `agent.local.json` overrides `agent.json` botId | Check both files, remove or update the local override |
|
|
219
|
+
| `adk chat` fails with "no devId" | `adk dev` hasn't been run yet (devId not set) | Run `adk dev` at least once to create the dev bot |
|
|
220
|
+
| Different behavior on teammate's machine | They have different `agent.local.json` | Expected — local overrides are per-developer |
|
|
221
|
+
| Deploy targets wrong bot | `agent.json` has wrong botId | Update `agent.json` via `adk link` or `adk config:set` |
|
|
222
222
|
|
|
223
223
|
### Checking your config
|
|
224
224
|
|
|
@@ -17,15 +17,15 @@ adk conversations list limit=5 --format json
|
|
|
17
17
|
|
|
18
18
|
**Output** (JSON): Array of objects, each with:
|
|
19
19
|
|
|
20
|
-
| Field
|
|
21
|
-
|
|
22
|
-
| `conversationId` | string
|
|
23
|
-
| `firstSeen`
|
|
24
|
-
| `lastSeen`
|
|
25
|
-
| `traceCount`
|
|
26
|
-
| `integration`
|
|
27
|
-
| `channel`
|
|
28
|
-
| `hasErrors`
|
|
20
|
+
| Field | Type | Description |
|
|
21
|
+
| ---------------- | ------- | ----------------------------------------------------------------------- |
|
|
22
|
+
| `conversationId` | string | Unique conversation identifier |
|
|
23
|
+
| `firstSeen` | string | ISO timestamp of the first recorded turn |
|
|
24
|
+
| `lastSeen` | string | ISO timestamp of the most recent turn |
|
|
25
|
+
| `traceCount` | number | Total number of turns in the conversation |
|
|
26
|
+
| `integration` | string | Which integration the conversation came from (e.g., `slack`, `webchat`) |
|
|
27
|
+
| `channel` | string | Which channel within the integration (e.g., `dm`, `thread`) |
|
|
28
|
+
| `hasErrors` | boolean | Whether any turn in the conversation had errors |
|
|
29
29
|
|
|
30
30
|
### Show a conversation's timeline
|
|
31
31
|
|
|
@@ -39,24 +39,24 @@ adk conversations show <conversation-id> --include-llm --format json
|
|
|
39
39
|
|
|
40
40
|
**Output** (JSON): Object with:
|
|
41
41
|
|
|
42
|
-
| Field
|
|
43
|
-
|
|
44
|
-
| `conversationId` | string | The conversation ID
|
|
45
|
-
| `turnCount`
|
|
46
|
-
| `turns`
|
|
42
|
+
| Field | Type | Description |
|
|
43
|
+
| ---------------- | ------ | ---------------------------- |
|
|
44
|
+
| `conversationId` | string | The conversation ID |
|
|
45
|
+
| `turnCount` | number | Total number of turns |
|
|
46
|
+
| `turns` | array | Ordered list of turn objects |
|
|
47
47
|
|
|
48
48
|
Each turn object contains:
|
|
49
49
|
|
|
50
|
-
| Field
|
|
51
|
-
|
|
52
|
-
| `traceId`
|
|
53
|
-
| `startedAt`
|
|
54
|
-
| `duration`
|
|
55
|
-
| `status`
|
|
56
|
-
| `trigger`
|
|
57
|
-
| `toolCalls`
|
|
58
|
-
| `errors`
|
|
59
|
-
| `llmContent` | array
|
|
50
|
+
| Field | Type | Description |
|
|
51
|
+
| ------------ | ------ | ------------------------------------------------------------ |
|
|
52
|
+
| `traceId` | string | Trace ID for this turn (use for drill-down) |
|
|
53
|
+
| `startedAt` | string | ISO timestamp when the turn started |
|
|
54
|
+
| `duration` | string | How long the turn took (e.g., `"2.3s"`) |
|
|
55
|
+
| `status` | string | `"ok"` or `"error"` |
|
|
56
|
+
| `trigger` | string | What started this turn (e.g., user message, event, workflow) |
|
|
57
|
+
| `toolCalls` | array | Tools invoked during this turn |
|
|
58
|
+
| `errors` | array | Error strings, if any |
|
|
59
|
+
| `llmContent` | array | LLM reasoning data (only with `--include-llm`) |
|
|
60
60
|
|
|
61
61
|
Each `toolCalls` entry has: `name`, `status`, `duration`, `error?`
|
|
62
62
|
|
|
@@ -116,9 +116,7 @@ Given this conversation data:
|
|
|
116
116
|
"duration": "3.2s",
|
|
117
117
|
"status": "ok",
|
|
118
118
|
"trigger": "User message via slack/dm",
|
|
119
|
-
"toolCalls": [
|
|
120
|
-
{ "name": "lookupOrder", "status": "ok", "duration": "0.9s" }
|
|
121
|
-
],
|
|
119
|
+
"toolCalls": [{ "name": "lookupOrder", "status": "ok", "duration": "0.9s" }],
|
|
122
120
|
"errors": []
|
|
123
121
|
},
|
|
124
122
|
{
|
|
@@ -167,7 +165,7 @@ Given this conversation data:
|
|
|
167
165
|
adk conversations show <conversation-id> --include-llm --format json
|
|
168
166
|
```
|
|
169
167
|
|
|
170
|
-
**Always use `--include-llm`** for explanations. Without it, you lose the LLM's reasoning, which is essential for explaining
|
|
168
|
+
**Always use `--include-llm`** for explanations. Without it, you lose the LLM's reasoning, which is essential for explaining _why_ the agent did what it did.
|
|
171
169
|
|
|
172
170
|
**What to cover for each turn:**
|
|
173
171
|
|
|
@@ -200,7 +198,10 @@ Given the same conversation with `--include-llm`:
|
|
|
200
198
|
"toolCalls": [],
|
|
201
199
|
"errors": [],
|
|
202
200
|
"llmContent": [
|
|
203
|
-
{
|
|
201
|
+
{
|
|
202
|
+
"name": "cognitive.iteration",
|
|
203
|
+
"data": "The user said 'Hi, I need help with an order'. This is a greeting with intent to discuss an order. I'll respond and ask for the order number."
|
|
204
|
+
}
|
|
204
205
|
]
|
|
205
206
|
},
|
|
206
207
|
{
|
|
@@ -209,12 +210,13 @@ Given the same conversation with `--include-llm`:
|
|
|
209
210
|
"duration": "3.2s",
|
|
210
211
|
"status": "ok",
|
|
211
212
|
"trigger": "User message via slack/dm",
|
|
212
|
-
"toolCalls": [
|
|
213
|
-
{ "name": "lookupOrder", "status": "ok", "duration": "0.9s" }
|
|
214
|
-
],
|
|
213
|
+
"toolCalls": [{ "name": "lookupOrder", "status": "ok", "duration": "0.9s" }],
|
|
215
214
|
"errors": [],
|
|
216
215
|
"llmContent": [
|
|
217
|
-
{
|
|
216
|
+
{
|
|
217
|
+
"name": "cognitive.iteration",
|
|
218
|
+
"data": "The user provided order number #4521. I should look this up to get the details before responding."
|
|
219
|
+
}
|
|
218
220
|
]
|
|
219
221
|
},
|
|
220
222
|
{
|
|
@@ -229,7 +231,10 @@ Given the same conversation with `--include-llm`:
|
|
|
229
231
|
"errors": ["Cannot cancel shipped order"],
|
|
230
232
|
"llmContent": [
|
|
231
233
|
{ "name": "cognitive.iteration", "data": "The user wants to cancel order #4521. I'll use cancelOrder." },
|
|
232
|
-
{
|
|
234
|
+
{
|
|
235
|
+
"name": "cognitive.iteration",
|
|
236
|
+
"data": "cancelOrder failed -- the order is already shipped. I need to tell the user and suggest a return instead."
|
|
237
|
+
}
|
|
233
238
|
]
|
|
234
239
|
},
|
|
235
240
|
{
|
|
@@ -241,7 +246,10 @@ Given the same conversation with `--include-llm`:
|
|
|
241
246
|
"toolCalls": [],
|
|
242
247
|
"errors": [],
|
|
243
248
|
"llmContent": [
|
|
244
|
-
{
|
|
249
|
+
{
|
|
250
|
+
"name": "cognitive.iteration",
|
|
251
|
+
"data": "The user asked how to start a return. I know the process from the instructions -- they need to go to the returns portal. No tool call needed."
|
|
252
|
+
}
|
|
245
253
|
]
|
|
246
254
|
}
|
|
247
255
|
]
|
|
@@ -276,12 +284,12 @@ adk conversations --format json
|
|
|
276
284
|
|
|
277
285
|
Use the list output to identify the conversation. Key signals:
|
|
278
286
|
|
|
279
|
-
| Signal
|
|
280
|
-
|
|
281
|
-
| `lastSeen`
|
|
282
|
-
| `hasErrors`
|
|
287
|
+
| Signal | How to Use |
|
|
288
|
+
| ------------------------- | ------------------------------------------------------------------------------- |
|
|
289
|
+
| `lastSeen` | Most recent conversation is usually the one they're asking about |
|
|
290
|
+
| `hasErrors` | If they're debugging a failure, look for `hasErrors: true` |
|
|
283
291
|
| `integration` / `channel` | If they mention "the Slack conversation" or "the webchat issue", match on these |
|
|
284
|
-
| `traceCount`
|
|
292
|
+
| `traceCount` | High turn counts may indicate stuck loops or long interactions |
|
|
285
293
|
|
|
286
294
|
### Step 3: Show the conversation
|
|
287
295
|
|
|
@@ -413,7 +421,7 @@ The conversation timeline shows what the agent did, not the exact user messages.
|
|
|
413
421
|
|
|
414
422
|
❌ **Don't re-explain tool behavior the developer already knows**
|
|
415
423
|
|
|
416
|
-
If the developer built the tools, they know what `lookupOrder` does. Focus on
|
|
424
|
+
If the developer built the tools, they know what `lookupOrder` does. Focus on _what happened_ and _why_, not what the tool is for.
|
|
417
425
|
|
|
418
426
|
❌ **Don't ignore the overall arc**
|
|
419
427
|
|
|
@@ -30,6 +30,7 @@ adk check --format json
|
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
This catches:
|
|
33
|
+
|
|
33
34
|
- Invalid `agent.config.ts`
|
|
34
35
|
- Schema mismatches in actions, tools, workflows
|
|
35
36
|
- Invalid entity names
|
|
@@ -114,17 +115,23 @@ adk traces conversation=<id> --format json
|
|
|
114
115
|
Based on what you found in logs and traces, classify the issue:
|
|
115
116
|
|
|
116
117
|
### Runtime Error
|
|
118
|
+
|
|
117
119
|
The code threw an exception or returned an error.
|
|
120
|
+
|
|
118
121
|
- **Traces show:** `code_execution_exception` or `tool_call` with `success: false`
|
|
119
122
|
- **Next:** See `common-failures.md` for specific patterns and fixes
|
|
120
123
|
|
|
121
124
|
### LLM Behavior
|
|
125
|
+
|
|
122
126
|
The model made a bad decision — wrong tool, hallucinated values, refusal, or looping.
|
|
127
|
+
|
|
123
128
|
- **Traces show:** `think` span with incorrect reasoning, or `tool_call` with wrong tool/params
|
|
124
129
|
- **Next:** See `llm-debugging.md` for diagnosis and fixes
|
|
125
130
|
|
|
126
131
|
### Config Issue
|
|
132
|
+
|
|
127
133
|
Missing or incorrect configuration — integration auth, agent.json, environment.
|
|
134
|
+
|
|
128
135
|
- **Traces show:** May not have traces at all, or errors mentioning config/auth
|
|
129
136
|
- **Logs show:** Startup errors, auth failures, missing config warnings
|
|
130
137
|
- **Next:** See `common-failures.md` sections on config, integration failures, and agent.json vs agent.local.json
|
|
@@ -135,16 +142,16 @@ Missing or incorrect configuration — integration auth, agent.json, environment
|
|
|
135
142
|
|
|
136
143
|
Apply a targeted fix based on the classification:
|
|
137
144
|
|
|
138
|
-
| Classification
|
|
139
|
-
|
|
140
|
-
| Runtime error in handler | Action/tool/workflow handler code
|
|
141
|
-
| Schema mismatch
|
|
142
|
-
| Wrong tool selected
|
|
143
|
-
| Hallucinated params
|
|
144
|
-
| Model refusal
|
|
145
|
-
| Model looping
|
|
146
|
-
| Integration failure
|
|
147
|
-
| Config issue
|
|
145
|
+
| Classification | Where to Fix | Reference |
|
|
146
|
+
| ------------------------ | ------------------------------------ | -------------------------------------------- |
|
|
147
|
+
| Runtime error in handler | Action/tool/workflow handler code | `common-failures.md` |
|
|
148
|
+
| Schema mismatch | Input/output schema definitions | `common-failures.md` § Build Errors |
|
|
149
|
+
| Wrong tool selected | Tool descriptions, instructions | `llm-debugging.md` § Wrong Tool |
|
|
150
|
+
| Hallucinated params | Input schemas, validation | `llm-debugging.md` § Hallucinated Parameters |
|
|
151
|
+
| Model refusal | Instructions, tool descriptions | `llm-debugging.md` § Refusal |
|
|
152
|
+
| Model looping | `onBeforeTool` guard, output clarity | `llm-debugging.md` § Looping |
|
|
153
|
+
| Integration failure | Dev Console config, `adk add` | `common-failures.md` § Integration Failures |
|
|
154
|
+
| Config issue | `agent.json`, `agent.local.json` | `common-failures.md` § Config Confusion |
|
|
148
155
|
|
|
149
156
|
---
|
|
150
157
|
|
|
@@ -167,6 +174,7 @@ adk traces --format json
|
|
|
167
174
|
```
|
|
168
175
|
|
|
169
176
|
Check that:
|
|
177
|
+
|
|
170
178
|
- The bot responds correctly
|
|
171
179
|
- The right tools are called with the right parameters
|
|
172
180
|
- No error spans in the traces
|
|
@@ -192,10 +200,7 @@ export default new Eval({
|
|
|
192
200
|
{
|
|
193
201
|
user: 'the message that triggered the bug',
|
|
194
202
|
assert: {
|
|
195
|
-
response: [
|
|
196
|
-
{ not_contains: 'error' },
|
|
197
|
-
{ llm_judge: 'Response correctly handles the scenario' },
|
|
198
|
-
],
|
|
203
|
+
response: [{ not_contains: 'error' }, { llm_judge: 'Response correctly handles the scenario' }],
|
|
199
204
|
tools: [{ called: 'expectedTool' }],
|
|
200
205
|
},
|
|
201
206
|
},
|
|
@@ -229,6 +234,7 @@ adk traces conversation=<id> --format json > traces.json
|
|
|
229
234
|
```
|
|
230
235
|
|
|
231
236
|
Include:
|
|
237
|
+
|
|
232
238
|
1. **Reproduction steps** — exact messages/events that trigger the issue
|
|
233
239
|
2. **`adk check` output** — project state
|
|
234
240
|
3. **Error logs** — relevant error entries
|
|
@@ -159,17 +159,17 @@ Look for repeated `tool_call` spans with the same `tool_name` in sequence.
|
|
|
159
159
|
```typescript
|
|
160
160
|
// Create per-conversation to avoid leaking state across turns
|
|
161
161
|
const makeLoopGuard = () => {
|
|
162
|
-
const seen = new Set<string>()
|
|
163
|
-
const onBeforeTool: Autonomous.Hooks[
|
|
164
|
-
const key = `${tool.name}:${JSON.stringify(input)}
|
|
162
|
+
const seen = new Set<string>()
|
|
163
|
+
const onBeforeTool: Autonomous.Hooks['onBeforeTool'] = async ({ tool, input, controller }) => {
|
|
164
|
+
const key = `${tool.name}:${JSON.stringify(input)}`
|
|
165
165
|
if (seen.has(key)) {
|
|
166
|
-
controller.abort(
|
|
167
|
-
return
|
|
166
|
+
controller.abort('Already called this tool with these parameters')
|
|
167
|
+
return
|
|
168
168
|
}
|
|
169
|
-
seen.add(key)
|
|
170
|
-
}
|
|
171
|
-
return { onBeforeTool }
|
|
172
|
-
}
|
|
169
|
+
seen.add(key)
|
|
170
|
+
}
|
|
171
|
+
return { onBeforeTool }
|
|
172
|
+
}
|
|
173
173
|
```
|
|
174
174
|
|
|
175
175
|
- **Set `maxIterations`:** Limit how many tool calls the agent can make per turn
|
|
@@ -192,11 +192,11 @@ adk traces --format json
|
|
|
192
192
|
**Via `onTrace` hook in code:**
|
|
193
193
|
|
|
194
194
|
```typescript
|
|
195
|
-
const onTrace: Autonomous.Hooks[
|
|
196
|
-
if (trace.type ===
|
|
197
|
-
console.debug(`[MODEL REASONING] ${trace.content}`)
|
|
195
|
+
const onTrace: Autonomous.Hooks['onTrace'] = ({ trace }) => {
|
|
196
|
+
if (trace.type === 'think') {
|
|
197
|
+
console.debug(`[MODEL REASONING] ${trace.content}`)
|
|
198
198
|
}
|
|
199
|
-
}
|
|
199
|
+
}
|
|
200
200
|
```
|
|
201
201
|
|
|
202
202
|
**What to look for:**
|
|
@@ -19,7 +19,7 @@ adk traces conversation=<id> --include-llm --format json
|
|
|
19
19
|
adk traces --include-llm --format json
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
**Always pass `--include-llm`** when summarizing. Without it, `think` spans are omitted and you lose the model's reasoning, which is essential for explaining
|
|
22
|
+
**Always pass `--include-llm`** when summarizing. Without it, `think` spans are omitted and you lose the model's reasoning, which is essential for explaining _why_ the agent did what it did.
|
|
23
23
|
|
|
24
24
|
**Always pass `--format json`** for structured, parseable output.
|
|
25
25
|
|
|
@@ -53,17 +53,17 @@ handler.conversation (or handler.workflow, handler.action)
|
|
|
53
53
|
|
|
54
54
|
### Key fields per span type
|
|
55
55
|
|
|
56
|
-
| Span Type
|
|
57
|
-
|
|
58
|
-
| `handler.conversation`
|
|
59
|
-
| `handler.workflow`
|
|
60
|
-
| `handler.action`
|
|
61
|
-
| `autonomous.iteration`
|
|
62
|
-
| `cognitive.request`
|
|
63
|
-
| `think`
|
|
64
|
-
| `tool_call`
|
|
65
|
-
| `code_execution_exception` | `data.message`, `data.stackTrace`
|
|
66
|
-
| `end`
|
|
56
|
+
| Span Type | Fields to Read | What They Tell You |
|
|
57
|
+
| -------------------------- | --------------------------------------------------------------------- | -------------------------------------------------- |
|
|
58
|
+
| `handler.conversation` | `context.conversationId`, `context.userId` | What triggered the trace (incoming message) |
|
|
59
|
+
| `handler.workflow` | `name`, `context` | Which workflow was invoked |
|
|
60
|
+
| `handler.action` | `name`, `context` | Which action was called |
|
|
61
|
+
| `autonomous.iteration` | `data.iterationIndex` | Which LLM turn this is (0-indexed) |
|
|
62
|
+
| `cognitive.request` | `data.model`, `data.tokens` | Which model was used, token counts |
|
|
63
|
+
| `think` | `data.content` | The LLM's reasoning -- why it chose an action |
|
|
64
|
+
| `tool_call` | `data.tool_name`, `data.input`, `data.output`, `status`, `data.error` | What tool was called, with what, and what happened |
|
|
65
|
+
| `code_execution_exception` | `data.message`, `data.stackTrace` | Runtime error in the LLMz sandbox |
|
|
66
|
+
| `end` | `data.response` | What the agent said back to the user |
|
|
67
67
|
|
|
68
68
|
---
|
|
69
69
|
|
|
@@ -89,12 +89,12 @@ Do **not** use a fixed template. Write a natural-language narrative that reads l
|
|
|
89
89
|
|
|
90
90
|
The summary depth should match what the developer is asking:
|
|
91
91
|
|
|
92
|
-
| Developer Question
|
|
93
|
-
|
|
94
|
-
| "What happened?" / "Summarize this trace"
|
|
95
|
-
| "Why did it do X?" / "Why did the bot call tool Y?" | **Focused** -- Zoom into the relevant `think` span and the tool call, explain the reasoning chain
|
|
96
|
-
| "What went wrong?" / "Why did this fail?"
|
|
97
|
-
| "Walk me through the whole trace"
|
|
92
|
+
| Developer Question | Summary Depth |
|
|
93
|
+
| --------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
|
|
94
|
+
| "What happened?" / "Summarize this trace" | **Brief** -- 3-5 sentences covering trigger, actions taken, outcome |
|
|
95
|
+
| "Why did it do X?" / "Why did the bot call tool Y?" | **Focused** -- Zoom into the relevant `think` span and the tool call, explain the reasoning chain |
|
|
96
|
+
| "What went wrong?" / "Why did this fail?" | **Diagnostic** -- Focus on the error path: what led to the failure, what the error was, whether recovery was attempted |
|
|
97
|
+
| "Walk me through the whole trace" | **Detailed** -- Full chronological narrative covering every iteration and tool call |
|
|
98
98
|
|
|
99
99
|
---
|
|
100
100
|
|