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
instanceOptions
IOptions<InstanceSettings>The options providing the InstanceSettings with instance settings.
resourceProviderServices
IEnumerable<IResourceProviderService>A list of IResourceProviderService resource providers.
configuration
IConfigurationThe IConfiguration used to retrieve configuration values.
logger
ILogger<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
instanceId
stringThe FoundationaLLM instance ID.
serviceProvider
IServiceProviderThe 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
instanceId
stringThe FoundationaLLM instance ID.
serviceName
stringThe name of the ILLMOrchestrationService to be retrieved.
serviceProvider
IServiceProviderThe IServiceProvider provding dependency injection services for the current scope.
callContext
IOrchestrationContextThe IOrchestrationContext call context of the request being handled.