Skip to content

DebugRequestExtras

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/debugCapture.ts:12

The non-message parts of a wrapModelCall request that also shape a turn: the tool definitions, the system prompt, and the model params. Captured alongside the message history so the /debug panel can show the full picture of what was sent to the model.

SECURITY: these are assembled from an explicit allowlist at the capture site (see extractDebugRequestExtras); the raw model instance (which can carry an apiKey) is never passed through here.

optional modelParams?: Record<string, unknown>

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/debugCapture.ts:18

Scalar model params (model id, temperature, …) — a key-free allowlist.


optional systemPrompt?: string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/debugCapture.ts:14

The composed system prompt string sent to the model for this call.


optional toolChoice?: unknown

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/debugCapture.ts:20

The tool-choice configuration for this call, if any.


optional tools?: DebugToolDef[]

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/debugCapture.ts:16

The tool definitions made available for this call (name + description + JSON schema).