Class AgentOrchestrator
- Namespace
- Oscova.Agents.Runtime
- Assembly
- Oscova.Agents.dll
Builds and caches agents from host-prepared runtime inputs.
public sealed class AgentOrchestrator : IAgentOrchestrator, IAgentCacheInvalidatorInheritance
Implements
Inherited Members
Remarks
The orchestrator owns framework-level tool synchronization and cache invalidation; hosts prepare model clients, definitions, and context providers.
Constructors
- AgentOrchestrator(IAgentRunScopeFactory?)
-
Builds and caches agents from host-prepared runtime inputs.
Properties
- AIAgents
-
Gets the cache of built agents, including exposed agent-as-tool dependencies.
- Tools
-
Gets the synchronized tool collection used by built agents.
Methods
- EvictAgent(string)
-
Removes a single agent from the cache.
- GetOrCreateAgentAsync(AgentBuildRequest, CancellationToken)
-
Returns a cached agent or builds the requested agent and its exposed dependencies.
- InvalidateAll()
-
Clears both tools and cached agents.
- InvalidateAllAgents()
-
Clears cached agents while preserving the synchronized tool collection.
- SyncTools(IEnumerable<ToolsetRegistration>, IReadOnlyList<AIFunction>, IReadOnlyDictionary<string, ExternalToolMetadata>)
-
Replaces the tool collection contents with host toolsets and external tools.