TaskCacheOptions
Parameters and properties
Section titled “Parameters and properties”storeRequiredTaskCacheStoreCaller-owned store that reads and writes cache entries, such as createTaskCacheStore over a Transport.versionRequiredstringNon-empty version included in the fingerprint; change it when the task implementation, agent, prompt or output contract changes.keyRequired(context: TaskContext) => WorkflowJson | Promise<WorkflowJson>Return the lossless JSON inputs that determine the result, such as a repository fingerprint, brief and model. Runs before each execution with attempt 0 and may read declared dependencies; an error fails the task.maxAgeMsOptionalnumber | undefinedPositive age limit in milliseconds; an older entry is a miss and is replaced after the task succeeds.modeOptionalTaskCacheMode | undefinedreuse (default) reads the store first; refresh ignores existing entries, executes the task and replaces the entry.