ข้ามไปยังเนื้อหา

Class AgentToolRunState

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Abstractions.Agentics
Assembly: Cephalon.Abstractions.dll

Describes the latest operator-facing runtime state reported for one agent-tool run.

public sealed record AgentToolRunState : IEquatable<AgentToolRunState>

objectAgentToolRunState

IEquatable<AgentToolRunState>

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

AgentToolRunState(string, string, string?, DateTimeOffset?, string?, string?, int, int, int, int, int, int, int, int, string?, string?, IReadOnlyDictionary<string, string>)

Section titled “ AgentToolRunState(string, string, string?, DateTimeOffset?, string?, string?, int, int, int, int, int, int, int, int, string?, string?, IReadOnlyDictionary<string, string>)”

Describes the latest operator-facing runtime state reported for one agent-tool run.

public AgentToolRunState(string ToolId, string RunId, string? LastOutcome, DateTimeOffset? LastObservedAtUtc, string? LastActorId, string? LastCorrelationId, int LastAttempt, int StartedCount, int SucceededCount, int FailedCount, int RetryScheduledCount, int SkippedCount, int ApprovalRequiredCount, int DeniedCount, string? LastOutputSummary, string? LastError, IReadOnlyDictionary<string, string> Metadata)

ToolId string

The stable tool identifier.

RunId string

The stable run identifier.

LastOutcome string?

The last reported outcome identifier when one exists.

LastObservedAtUtc DateTimeOffset?

The UTC timestamp when the last observation was reported.

LastActorId string?

The actor identifier from the latest observation when one was reported.

LastCorrelationId string?

The correlation identifier from the latest observation when one was reported.

LastAttempt int

The last reported execution attempt number.

StartedCount int

The number of started observations reported so far.

SucceededCount int

The number of succeeded observations reported so far.

FailedCount int

The number of failed observations reported so far.

RetryScheduledCount int

The number of retry-scheduled observations reported so far.

SkippedCount int

The number of skipped observations reported so far.

ApprovalRequiredCount int

The number of approval-required observations reported so far.

DeniedCount int

The number of denied observations reported so far.

LastOutputSummary string?

The latest operator-facing output summary when one was reported.

LastError string?

The latest operator-facing error summary when one was reported.

Metadata IReadOnlyDictionary<string, string>

The operator-facing metadata captured by the latest report.

The number of approval-required observations reported so far.

public int ApprovalRequiredCount { get; init; }

int

The number of denied observations reported so far.

public int DeniedCount { get; init; }

int

Gets a value indicating whether the latest report represents a process-local duplicate-completed suppression.

public bool DuplicateCompleted { get; }

bool

The number of failed observations reported so far.

public int FailedCount { get; init; }

int

Gets a value indicating whether the latest report represents a terminal outcome for this run.

public bool IsTerminal { get; }

bool

The actor identifier from the latest observation when one was reported.

public string? LastActorId { get; init; }

string?

The last reported execution attempt number.

public int LastAttempt { get; init; }

int

The correlation identifier from the latest observation when one was reported.

public string? LastCorrelationId { get; init; }

string?

The latest operator-facing error summary when one was reported.

public string? LastError { get; init; }

string?

The UTC timestamp when the last observation was reported.

public DateTimeOffset? LastObservedAtUtc { get; init; }

DateTimeOffset?

The last reported outcome identifier when one exists.

public string? LastOutcome { get; init; }

string?

The latest operator-facing output summary when one was reported.

public string? LastOutputSummary { get; init; }

string?

The operator-facing metadata captured by the latest report.

public IReadOnlyDictionary<string, string> Metadata { get; init; }

IReadOnlyDictionary<string, string>

Gets a value indicating whether the latest report says explicit approval is required before execution can continue.

public bool RequiresApproval { get; }

bool

Gets a value indicating whether the latest report says another process-local attempt is pending.

public bool RetryPending { get; }

bool

The number of retry-scheduled observations reported so far.

public int RetryScheduledCount { get; init; }

int

The stable run identifier.

public string RunId { get; init; }

string

The number of skipped observations reported so far.

public int SkippedCount { get; init; }

int

The number of started observations reported so far.

public int StartedCount { get; init; }

int

The number of succeeded observations reported so far.

public int SucceededCount { get; init; }

int

Gets a value indicating whether the latest report represents a terminal failed outcome for this run.

public bool TerminalFailure { get; }

bool

The stable tool identifier.

public string ToolId { get; init; }

string

Gets the total number of observations reported for this run.

public int TotalReports { get; }

int