Skip to content

AgentPrismWorkflowOptions

Namespace AgentPrism · Assembly AgentPrism.Workflows.dll

Settings that control workflow execution.

public sealed class AgentPrismWorkflowOptions

objectAgentPrismWorkflowOptions

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

public AgentPrismWorkflowOptions()

The name of the configuration section.

public const string SectionName = "AgentPrism:Workflows"

string

Gets or sets whether checkpoint writing is enabled.

public bool EnableCheckpointing { get; set; }

bool

The default is true: resuming works out of the box. The cost is one write per super-step; AgentPrismWorkflowOptions.MaxSuperSteps and the retention limit of the in-memory store keep this in check.

Gets or sets whether workflow execution is enabled.

public bool Enabled { get; set; }

bool

When disabled, the catalog is still listed; only execution is refused. This lets execution be stopped during an incident without deleting the definitions.

Gets or sets whether the checkpoints of a completed run are kept.

public bool KeepCheckpointsAfterCompletion { get; set; }

bool

The default is true: being resumable even after a workflow has finished is the whole point of this feature. Setups that want to avoid the storage cost can disable it; checkpoints then live only while the run is in progress.

Gets or sets the maximum number of workflows that may run at the same time.

public int MaxConcurrentRuns { get; set; }

int

The limit is shared across all tenants. A single workflow makes dozens of model calls; leaving it unbounded would let one user consume an entire provider quota.

Gets or sets the maximum number of super-steps a single run may process.

public int MaxSuperSteps { get; set; }

int

This is the only structural guard against an infinite loop. In the Handoff and GroupChat patterns the model decides when to hand off; a poorly written instruction can make two agents hand off to each other forever.

Gets or sets the maximum duration of a single workflow run.

public TimeSpan RunTimeout { get; set; }

TimeSpan