Skip to contents

Looks up the raw API response behind an audit-log record by its prompt_hash (manual audit); planned replay tooling (planned) to reproduce a prior run's AI calls from on-disk artifacts.

Usage

read_cached_response(cache, prompt_hash)

Arguments

cache

A ResponseCache object

prompt_hash

Character S hex digest (from ai_result$prompt_hash or an audit log record).

Value

The parsed raw_response list that was cached, or NULL if the cache is disabled or no matching file exists.