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
agentToolIdsIEnumerable<string>agentsAIAgentCollectionresolveWorkFunc<DelegatedWorkState?>?selfAgentIdstring?createSelfWorkerFunc<CancellationToken, Task<ChatClientAgent>>?