ReceiptParams
Interface: ReceiptParams
Defined in: src/core/agent/receipt/receipt.ts:292
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.
time-travel/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 sentProperties
maxTokens?
readonlyoptionalmaxTokens?:number
Defined in: src/core/agent/receipt/receipt.ts:294
outputFormat?
readonlyoptionaloutputFormat?:object
Defined in: src/core/agent/receipt/receipt.ts:307
The structured-output format the port carried (LLMRequest.outputFormat,
.outputSchema(s, { strategy: 'native' })): its type, and the
run-salted hash of its schema as sorted-key JSON — so a reader can tell
the answer was decoded under a schema, and which one, without the bytes.
Absent when the request carried none.
schemaHash
readonlyschemaHash:string
type
readonlytype:string
stop?
readonlyoptionalstop?: readonlystring[]
Defined in: src/core/agent/receipt/receipt.ts:297
temperature?
readonlyoptionaltemperature?:number
Defined in: src/core/agent/receipt/receipt.ts:293
thinkingBudget?
readonlyoptionalthinkingBudget?:number
Defined in: src/core/agent/receipt/receipt.ts:296
LLMRequest.thinking.budget — the reasoning-token ceiling asked for.
toolChoice?
readonlyoptionaltoolChoice?:object
Defined in: src/core/agent/receipt/receipt.ts:299
The forced tool choice, as the port carried it.
name?
readonlyoptionalname?:string
type
readonlytype:string
