You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/blog/debug-logging-for-tanstack-ai.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,16 +60,16 @@ chat({
60
60
61
61
Omitted categories default to `true`, so the common case is "turn off the one thing that's drowning you." Every category maps to a real pipeline surface:
62
62
63
-
| Category | What it logs |
64
-
|----------|--------------|
65
-
|`request`| Outgoing call to a provider (model, message count, tool count) |
66
-
|`provider`| Every raw chunk or frame from the provider SDK |
67
-
|`output`| Every chunk or result yielded to the caller |
68
-
|`middleware`| Inputs and outputs around every middleware hook |
69
-
|`tools`| Before and after tool call execution |
70
-
|`agentLoop`| Agent-loop iterations and phase transitions |
71
-
|`config`| Config transforms returned by middleware `onConfig` hooks |
72
-
|`errors`| Every caught error anywhere in the pipeline |
|`request`| Outgoing call to a provider (model, message count, tool count) |
66
+
|`provider`| Every raw chunk or frame from the provider SDK|
67
+
|`output`| Every chunk or result yielded to the caller|
68
+
|`middleware`| Inputs and outputs around every middleware hook |
69
+
|`tools`| Before and after tool call execution|
70
+
|`agentLoop`| Agent-loop iterations and phase transitions|
71
+
|`config`| Config transforms returned by middleware `onConfig` hooks|
72
+
|`errors`| Every caught error anywhere in the pipeline|
73
73
74
74
Chat-only categories like `tools` and `agentLoop` just don't fire for `summarize()` or `generateImage()`, because they don't exist in those pipelines. You don't have to think about it.
0 commit comments