Class AgentToolExecutionContext
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Agentics.Services
Assembly: Cephalon.Agentics.dll
Describes the host-agnostic execution context delivered to one managed agent-tool executor.
public sealed class AgentToolExecutionContextInheritance
Section titled “Inheritance”object ← AgentToolExecutionContext
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”AgentToolExecutionContext(AgentToolDescriptor, string, IReadOnlyDictionary<string, string>?, string?, string?, int, IReadOnlyDictionary<string, string>?)
Section titled “ AgentToolExecutionContext(AgentToolDescriptor, string, IReadOnlyDictionary<string, string>?, string?, string?, int, IReadOnlyDictionary<string, string>?)”Creates a new agent-tool execution context.
public AgentToolExecutionContext(AgentToolDescriptor tool, string runId, IReadOnlyDictionary<string, string>? arguments = null, string? actorId = null, string? correlationId = null, int attempt = 1, IReadOnlyDictionary<string, string>? metadata = null)Parameters
Section titled “Parameters”tool AgentToolDescriptor
The resolved tool descriptor being executed.
runId string
The stable run identifier for this execution.
arguments IReadOnlyDictionary<string, string>?
Optional string arguments supplied to the tool executor.
actorId string?
The optional actor identifier responsible for the request.
correlationId string?
The optional correlation identifier for the request.
attempt int
The execution attempt number.
metadata IReadOnlyDictionary<string, string>?
Optional operator-facing metadata associated with the request.
Properties
Section titled “Properties”ActorId
Section titled “ ActorId”Gets the optional actor identifier responsible for the request.
public string? ActorId { get; }Property Value
Section titled “Property Value”Arguments
Section titled “ Arguments”Gets optional string arguments supplied to the tool executor.
public IReadOnlyDictionary<string, string> Arguments { get; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>
Attempt
Section titled “ Attempt”Gets the execution attempt number.
public int Attempt { get; }Property Value
Section titled “Property Value”CorrelationId
Section titled “ CorrelationId”Gets the optional correlation identifier for the request.
public string? CorrelationId { get; }Property Value
Section titled “Property Value”Metadata
Section titled “ Metadata”Gets optional operator-facing metadata associated with the request.
public IReadOnlyDictionary<string, string> Metadata { get; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>
Gets the stable run identifier for this execution.
public string RunId { get; }Property Value
Section titled “Property Value”Gets the resolved tool descriptor being executed.
public AgentToolDescriptor Tool { get; }