Skip to content

CachingActOptions

Namespace: E2E

public sealed class CachingActOptions : ActOptions

ActOptions for ActAsync: each call names the recording it replays and records, or runs live. Upstream’s CachingActOptions (core/agent.ts), which TypeScript types as a union; C# holds both members, and the agent refuses the one that does not fit it at runtime. Agent is INVALID_ARGUMENT: create another agent for another configuration.

Inheritance: object → ActOptions

View source

public bool? Cache { get; init; }

false runs this call live, neither replaying nor recording. Any other value is INVALID_ARGUMENT.

Value: bool?

public string? CacheKey { get; init; }

The recording this call replays and records, unique within what the program does: checkout, cart-best-coupon. The key is this name, the instruction, its params, and how many times the session made the same call, so a reworded instruction records afresh.

Value: string