Class AgentToolExecutionResult
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Abstractions.Agentics
Assembly: Cephalon.Abstractions.dll
Describes the result returned by one managed agent-tool executor.
public sealed class AgentToolExecutionResultInheritance
Section titled “Inheritance”object ← AgentToolExecutionResult
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”AgentToolExecutionResult(string, string?, string?, IReadOnlyDictionary<string, string>?)
Section titled “ AgentToolExecutionResult(string, string?, string?, IReadOnlyDictionary<string, string>?)”Creates a new agent-tool execution result.
public AgentToolExecutionResult(string outcome, string? outputSummary = null, string? error = null, IReadOnlyDictionary<string, string>? metadata = null)Parameters
Section titled “Parameters”outcome string
The stable execution outcome identifier.
outputSummary string?
The optional operator-facing output summary.
error string?
The optional operator-facing error summary.
metadata IReadOnlyDictionary<string, string>?
Optional metadata captured by the executor.
Properties
Section titled “Properties”Gets the optional operator-facing error summary.
public string? Error { get; }Property Value
Section titled “Property Value”Metadata
Section titled “ Metadata”Gets optional metadata captured by the executor.
public IReadOnlyDictionary<string, string> Metadata { get; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>
Outcome
Section titled “ Outcome”Gets the stable execution outcome identifier.
public string Outcome { get; }Property Value
Section titled “Property Value”OutputSummary
Section titled “ OutputSummary”Gets the optional operator-facing output summary.
public string? OutputSummary { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”ApprovalRequired(string?, IReadOnlyDictionary<string, string>?)
Section titled “ ApprovalRequired(string?, IReadOnlyDictionary<string, string>?)”Creates an approval-required execution result.
public static AgentToolExecutionResult ApprovalRequired(string? outputSummary = null, IReadOnlyDictionary<string, string>? metadata = null)Parameters
Section titled “Parameters”outputSummary string?
The optional operator-facing output summary.
metadata IReadOnlyDictionary<string, string>?
Optional metadata captured by the policy layer.
Returns
Section titled “Returns”An approval-required execution result.
Denied(string?, IReadOnlyDictionary<string, string>?)
Section titled “ Denied(string?, IReadOnlyDictionary<string, string>?)”Creates a denied execution result.
public static AgentToolExecutionResult Denied(string? error = null, IReadOnlyDictionary<string, string>? metadata = null)Parameters
Section titled “Parameters”error string?
The operator-facing denial reason.
metadata IReadOnlyDictionary<string, string>?
Optional metadata captured by the policy layer.
Returns
Section titled “Returns”A denied execution result.
Failed(string, IReadOnlyDictionary<string, string>?)
Section titled “ Failed(string, IReadOnlyDictionary<string, string>?)”Creates a failed execution result.
public static AgentToolExecutionResult Failed(string error, IReadOnlyDictionary<string, string>? metadata = null)Parameters
Section titled “Parameters”error string
The operator-facing error summary.
metadata IReadOnlyDictionary<string, string>?
Optional metadata captured by the executor.
Returns
Section titled “Returns”A failed execution result.
Skipped(string?, IReadOnlyDictionary<string, string>?)
Section titled “ Skipped(string?, IReadOnlyDictionary<string, string>?)”Creates a skipped execution result.
public static AgentToolExecutionResult Skipped(string? outputSummary = null, IReadOnlyDictionary<string, string>? metadata = null)Parameters
Section titled “Parameters”outputSummary string?
The optional operator-facing output summary.
metadata IReadOnlyDictionary<string, string>?
Optional metadata captured by the executor.
Returns
Section titled “Returns”A skipped execution result.
Succeeded(string?, IReadOnlyDictionary<string, string>?)
Section titled “ Succeeded(string?, IReadOnlyDictionary<string, string>?)”Creates a successful execution result.
public static AgentToolExecutionResult Succeeded(string? outputSummary = null, IReadOnlyDictionary<string, string>? metadata = null)Parameters
Section titled “Parameters”outputSummary string?
The optional operator-facing output summary.
metadata IReadOnlyDictionary<string, string>?
Optional metadata captured by the executor.
Returns
Section titled “Returns”A successful execution result.