Interfaces

ReceiptParams

Interface: ReceiptParams

Defined in: src/lib/time-travel/receipt.ts:259

The sampling knobs the call went out with — scalars and short strings, no bytes, no privacy change.

They decide the answer as surely as the prompt does: the same context at temperature: 0 and at 1.2 is a different call, and "why did this turn ramble?" is unanswerable from a record that kept the prompt and dropped the dial.

READ OFF THE PREPARED REQUEST — the object the port is handed, after the cache strategy has had it. This is the one part of a receipt that describes the post-strategy request rather than the pre-strategy one, and deliberately so: a strategy holds the whole composed request and can move a dial, and params claims in this very docstring to be what the PORT got. servedView.ts · SERVED_GAPS says the same from the other side — cache-transform names every field the log rebuilds pre-strategy, and params is not among them.

PORT VALUES ONLY — see RECEIPT_BOUNDARY. An unset maxTokens may still become the model's own maximum inside a vendor SDK, and the receipt records that the library sent nothing, never what the vendor decided.

Example

compare the dial two turns went out on

import { receiptAt } from 'agentfootprint';

const snapshot = agent.getSnapshot()!;
receiptAt(snapshot, 1)?.params.temperature; // 0.25
receiptAt(snapshot, 2)?.params.temperature; // 0.25 — the dial did not move
receiptAt(snapshot, 1)?.params.stop;        // undefined: none was sent

Properties

maxTokens?

readonly optional maxTokens?: number

Defined in: src/lib/time-travel/receipt.ts:261


stop?

readonly optional stop?: readonly string[]

Defined in: src/lib/time-travel/receipt.ts:264


temperature?

readonly optional temperature?: number

Defined in: src/lib/time-travel/receipt.ts:260


thinkingBudget?

readonly optional thinkingBudget?: number

Defined in: src/lib/time-travel/receipt.ts:263

LLMRequest.thinking.budget — the reasoning-token ceiling asked for.


toolChoice?

readonly optional toolChoice?: object

Defined in: src/lib/time-travel/receipt.ts:266

The forced tool choice, as the port carried it.

name?

readonly optional name?: string

type

readonly type: string

On this page