Class ToolIdempotencyReservation

Assembly: redb.Route.Llm.dll

Outcome of .

public sealed class ToolIdempotencyReservation

Inheritance

Object→ToolIdempotencyReservation

Properties

CachedOutputJson

Cached output JSON when is false and the prior call completed.

public string? CachedOutputJson { get; init; }

IsNew

True when this caller owns the reservation and must execute the tool.

public required bool IsNew { get; init; }

Methods

Hit(string)

Builds a hit reservation that returns the previously-recorded output.

public static ToolIdempotencyReservation Hit(string outputJson)