Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/testing / requestHash

Function: requestHash()

ts
function requestHash(req): string;

Defined in: packages/testing/src/vcr.ts:147

The cassette key: a hash of the canonical wire-contract request. The engine-populated telemetry namespace is excluded (never identity); so is cacheHint (RV2006), whose own contract says it MUST NOT enter identity and MUST NOT change response semantics: a cassette recorded before the cache policy shipped replays a hinted request byte for byte, and toggling the policy can never re-key a row. Everything else the adapter would send keys the row.

Parameters

ParameterType
reqChatRequest

Returns

string