Class LLMOrchestrationServiceManager
- Namespace
- FoundationaLLM.Orchestration.Core.Services
- Assembly
- FoundationaLLM.Orchestration.Core.dll
Manages internal and external orchestration services.
public class LLMOrchestrationServiceManager : ILLMOrchestrationServiceManager
- Inheritance
-
LLMOrchestrationServiceManager
- Implements
- Inherited Members
- Extension Methods
Constructors
LLMOrchestrationServiceManager(IOptions<InstanceSettings>, IEnumerable<IResourceProviderService>, IConfiguration, ILogger<LLMOrchestrationServiceManager>)
Creates a new instance of the LLM Orchestration Service Manager.
public LLMOrchestrationServiceManager(IOptions<InstanceSettings> instanceOptions, IEnumerable<IResourceProviderService> resourceProviderServices, IConfiguration configuration, ILogger<LLMOrchestrationServiceManager> logger)
Parameters
instanceOptionsIOptions<InstanceSettings>The options providing the InstanceSettings with instance settings.
resourceProviderServicesIEnumerable<IResourceProviderService>A list of IResourceProviderService resource providers.
configurationIConfigurationThe IConfiguration used to retrieve configuration values.
loggerILogger<LLMOrchestrationServiceManager>The logger for the orchestration service manager.
Methods
GetAggregateStatus(string, IServiceProvider)
Gets an aggregate initialization status based on the initialization status of each subordinate orchestration service.
public Task<List<ServiceStatusInfo>> GetAggregateStatus(string instanceId, IServiceProvider serviceProvider)
Parameters
instanceIdstringThe FoundationaLLM instance ID.
serviceProviderIServiceProviderThe IServiceProvider provding dependency injection services for the current scope.
Returns
GetService(string, string, IServiceProvider, IOrchestrationContext)
Gets an ILLMOrchestrationService instance based on the service name.
public ILLMOrchestrationService GetService(string instanceId, string serviceName, IServiceProvider serviceProvider, IOrchestrationContext callContext)
Parameters
instanceIdstringThe FoundationaLLM instance ID.
serviceNamestringThe name of the ILLMOrchestrationService to be retrieved.
serviceProviderIServiceProviderThe IServiceProvider provding dependency injection services for the current scope.
callContextIOrchestrationContextThe IOrchestrationContext call context of the request being handled.