Skip to content

EvalCacheEntryV1

PromptScript API


Defined in: core/src/types/eval.ts:383

One recorded model call of the eval cache, version 1. The file name is the key, and the key is the SHA-256 of the canonical JSON of request.

Properties

$schema

$schema: "https://getpromptscript.dev/schema/eval-cache-entry/v1.json"

Defined in: core/src/types/eval.ts:388

Schema URL, the version tag of the entry.

Example

"https://getpromptscript.dev/schema/eval-cache-entry/v1.json"

key

key: string

Defined in: core/src/types/eval.ts:390

Cache key


request

request: EvalCacheRequestV1

Defined in: core/src/types/eval.ts:392

The request the entry answers


response

response: EvalCacheResponseV1

Defined in: core/src/types/eval.ts:394

The recorded response