Skip to content

LastModelRequest

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/dist/core/debugCapture.d.ts:38

GS2-56 — the always-on snapshot of the LAST model request, kept on import(‘#src/core/GthAbstractAgent.js’).GthAbstractAgent independent of any DebugCapture sink. It is the SAME data the sink reports (the as-sent, post-summarization request.messages plus the DebugRequestExtras), captured unconditionally at each model call so /debug-dump can render the full model input even when the TUI /debug panel was never opened and on non-TUI surfaces. Reuses DebugRequestExtras rather than forking a parallel capture shape; WriteDebugDumpInput.modelRequest is this same type, so the caller threads agent.lastModelRequest straight through with no reshaping.

optional extras?: DebugRequestExtras

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/dist/core/debugCapture.d.ts:40

The request extras (system prompt, tool defs with schema, model params, tool-choice).


optional messages?: BaseMessage<MessageStructure<MessageToolSet>, MessageType>[]

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/dist/core/debugCapture.d.ts:42

The exact messages sent to the model for the last call (post-summarization / middleware).