Table of Contents

Constructor AgentAsToolProvider

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

AgentAsToolProvider(IEnumerable<string>, AIAgentCollection, Func<DelegatedWorkState?>?, string?, Func<CancellationToken, Task<ChatClientAgent>>?)

Creates the provider. Without a work state, agent calls run synchronously. A self-worker factory enables same-agent subagents for the agent with selfAgentId.

public AgentAsToolProvider(IEnumerable<string> agentToolIds, AIAgentCollection agents, Func<DelegatedWorkState?>? resolveWork = null, string? selfAgentId = null, Func<CancellationToken, Task<ChatClientAgent>>? createSelfWorker = null)

Parameters

agentToolIds IEnumerable<string>
agents AIAgentCollection
resolveWork Func<DelegatedWorkState?>?
selfAgentId string?
createSelfWorker Func<CancellationToken, Task<ChatClientAgent>>?