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

Interface IAgentToolExecutor

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

Namespace: Cephalon.Agentics.Services
Assembly: Cephalon.Agentics.dll

Executes one registered agent tool through the Cephalon-managed agentics runtime.

public interface IAgentToolExecutor

Gets the stable tool identifier owned by this executor.

string ToolId { get; }

string

ExecuteAsync(AgentToolExecutionContext, CancellationToken)

Section titled “ ExecuteAsync(AgentToolExecutionContext, CancellationToken)”

Executes the tool against the supplied context.

ValueTask<AgentToolExecutionResult> ExecuteAsync(AgentToolExecutionContext context, CancellationToken cancellationToken = default)

context AgentToolExecutionContext

The host-agnostic execution context for the current tool run.

cancellationToken CancellationToken

The cancellation token for the current execution attempt.

ValueTask<AgentToolExecutionResult>

The result reported by the executor.