Skip to content

AgentPrismAsyncRunOptions

Namespace AgentPrism · Assembly AgentPrism.Core.dll

Defines queued, durable run options.

public sealed class AgentPrismAsyncRunOptions

objectAgentPrismAsyncRunOptions

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Read from the AgentPrism:AsyncRun configuration section.

Enabled is the default, as with the Idempotency-Key. A request without Prefer: respond-async has no additional cost or behavioral change; it does not issue a query. If this were disabled by default, a client that sent the header would believe the run was queued when it was not, which would be the real silent surprise.

public AgentPrismAsyncRunOptions()

Gets the configuration section name.

public const string SectionName = "AgentPrism:AsyncRun"

string

Gets or sets whether Prefer: respond-async is recognized. When disabled, a request that carries the header receives 501 rather than silently falling back to synchronous execution. Defaults to true.

public bool Enabled { get; set; }

bool

Gets or sets the maximum attempt count for a queued run.

public int MaxAttempts { get; set; }

int

Defaults to 1 to prevent a side-effecting tool from running twice when a lease expires and the job is reclaimed. Raising it requires idempotent tools. “Durable” means a job does not disappear silently, not that it can never be lost.