Język

ResilientTaskErrorCode Struct

Definition

Identifies the category of a ResilientTaskException. This is an extensible enum (a string-backed value type following the Azure SDK pattern): new protocol reasons can be introduced without a breaking change, and an unrecognized value round-trips rather than failing to parse. Argument validation and cancellation are represented by the standard ArgumentException and OperationCanceledException instead of a code.

public readonly struct ResilientTaskErrorCode : IEquatable<Azure.AI.AgentServer.Core.Tasks.ResilientTaskErrorCode>
type ResilientTaskErrorCode = struct
Public Structure ResilientTaskErrorCode
Implements IEquatable(Of ResilientTaskErrorCode)
Inheritance
ResilientTaskErrorCode
Implements

Constructors

Name Description
ResilientTaskErrorCode(String)

Initializes a new instance of the ResilientTaskErrorCode struct.

Properties

Name Description
Conflict

An operation conflicted with the task's current state — for example, starting a task whose turn is already in progress elsewhere, or mutating a task that has reached a terminal state.

ExhaustedRetries

The handler exhausted its configured retry budget.

HandlerError

The handler threw an exception that was not retried (or retries were disabled).

NotEnabled

The host did not opt in to the resilient-task runtime before startup.

PreconditionFailed

A run was submitted with an IfLastInputId precondition that did not match the task's actual last input id (an optimistic-concurrency guard for multi-turn chains).

QueueFull

A steerable multi-turn task already holds the maximum number of pending steering inputs.

Methods

Name Description
Equals(ResilientTaskErrorCode)

Indicates whether the current object is equal to another object of the same type.

ToString()

Returns the fully qualified type name of this instance.

Operators

Name Description
Equality(ResilientTaskErrorCode, ResilientTaskErrorCode)

Determines if two ResilientTaskErrorCode values are the same.

Implicit(String to ResilientTaskErrorCode)

Converts a string to a ResilientTaskErrorCode.

Inequality(ResilientTaskErrorCode, ResilientTaskErrorCode)

Determines if two ResilientTaskErrorCode values are not the same.

Applies to