Table of Contents

Method RunAgentAsync

Namespace
Oscova.Agents.Providers
Assembly
Oscova.Agents.dll

RunAgentAsync(ChatClientAgent, IEnumerable<ChatMessage>, AgentSession, AgentRunOptions?, Action<AgentResponseUpdate>?, CancellationToken)

Executes a child while preserving this provider's named session ownership.

protected virtual Task<AgentResponse> RunAgentAsync(ChatClientAgent agent, IEnumerable<ChatMessage> messages, AgentSession session, AgentRunOptions? options, Action<AgentResponseUpdate>? onUpdate, CancellationToken cancellationToken)

Parameters

agent ChatClientAgent
messages IEnumerable<ChatMessage>
session AgentSession
options AgentRunOptions?
onUpdate Action<AgentResponseUpdate>?
cancellationToken CancellationToken

Returns

Task<AgentResponse>