WarmEntry

constructor(prompt: String, response: String, scope: String = SemanticCache.DEFAULT_SCOPE, metadata: Map<String, String> = emptyMap())

Parameters

prompt

the prompt to cache the answer for, stored verbatim (the guards re-read it on a hit).

response

the answer to replay when this prompt is matched.

scope

the partition the entry belongs to; defaults to SemanticCache.DEFAULT_SCOPE.

metadata

free-form caller data returned untouched on a hit.