Table of Contents

Method ExecuteAgentAsync

Namespace
LMKit.Agents.Orchestration
Assembly
LM-Kit.NET.dll

ExecuteAgentAsync(Agent, string, OrchestrationContext, OrchestrationOptions, CancellationToken)

Executes a single agent with event notifications and optional streaming.

protected Task<AgentExecutionResult> ExecuteAgentAsync(Agent agent, string input, OrchestrationContext context, OrchestrationOptions options, CancellationToken cancellationToken)

Parameters

agent Agent
input string
context OrchestrationContext
options OrchestrationOptions
cancellationToken CancellationToken

Returns

Task<AgentExecutionResult>

Remarks

Internal so graph nodes (e.g. AgentNode) hosted under GraphOrchestrator can route their per-agent invocations through the same path that prebuilt orchestrators use, ensuring identical event firing, distributed-trace spans, and streaming behavior.

Share