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

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 AgentToolExecutionContext

objectAgentToolExecutionContext

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

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)

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.

Gets the optional actor identifier responsible for the request.

public string? ActorId { get; }

string?

Gets optional string arguments supplied to the tool executor.

public IReadOnlyDictionary<string, string> Arguments { get; }

IReadOnlyDictionary<string, string>

Gets the execution attempt number.

public int Attempt { get; }

int

Gets the optional correlation identifier for the request.

public string? CorrelationId { get; }

string?

Gets optional operator-facing metadata associated with the request.

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

IReadOnlyDictionary<string, string>

Gets the stable run identifier for this execution.

public string RunId { get; }

string

Gets the resolved tool descriptor being executed.

public AgentToolDescriptor Tool { get; }

AgentToolDescriptor