Skip to content

Latest commit

History

History
110 lines (65 loc) 路 3.04 KB

File metadata and controls

110 lines (65 loc) 路 3.04 KB
id DebugCategories
title DebugCategories

Interface: DebugCategories

Defined in: packages/typescript/ai/src/logger/types.ts:30

Per-category toggles for debug logging. Each flag enables or disables one class of log message. Unspecified flags default to true when DebugConfig is partially specified; undefined on the debug option defaults all flags to false except errors.

Extended by

Properties

agentLoop?

optional agentLoop: boolean;

Defined in: packages/typescript/ai/src/logger/types.ts:50

Iteration markers and phase transitions in the chat agent loop. Chat-only.


config?

optional config: boolean;

Defined in: packages/typescript/ai/src/logger/types.ts:54

Config transforms returned by middleware onConfig hooks. Chat-only.


errors?

optional errors: boolean;

Defined in: packages/typescript/ai/src/logger/types.ts:58

Caught errors throughout the pipeline. Unlike other categories, defaults to true even when debug is unspecified. Explicitly set errors: false or debug: false to silence.


middleware?

optional middleware: boolean;

Defined in: packages/typescript/ai/src/logger/types.ts:42

Inputs and outputs around each middleware hook invocation. Chat-only.


output?

optional output: boolean;

Defined in: packages/typescript/ai/src/logger/types.ts:38

Chunks/results yielded to the consumer after all middleware. For streaming activities this fires per chunk; for non-streaming activities it fires once per result.


provider?

optional provider: boolean;

Defined in: packages/typescript/ai/src/logger/types.ts:34

Raw chunks/frames received from a provider SDK (OpenAI, Anthropic, Gemini, Ollama, Grok, Groq, OpenRouter, fal, ElevenLabs). Emitted inside every streaming adapter's chunk loop.


request?

optional request: boolean;

Defined in: packages/typescript/ai/src/logger/types.ts:62

Outgoing call metadata (provider, model, message/tool counts) emitted before each adapter SDK call.


tools?

optional tools: boolean;

Defined in: packages/typescript/ai/src/logger/types.ts:46

Before/after tool-call execution in the chat agent loop. Chat-only.