Class SemanticKernelService
- Namespace
- FoundationaLLM.SemanticKernel.Core.Services
- Assembly
- FoundationaLLM.SemanticKernel.Core.dll
Processes requests targeting the Semantic Kernel agents.
public class SemanticKernelService : ISemanticKernelService
- Inheritance
-
SemanticKernelService
- Implements
- Inherited Members
- Extension Methods
Constructors
SemanticKernelService(ILoggerFactory, IOrchestrationContext, IEnumerable<IResourceProviderService>, IHttpClientFactoryService, ConcurrentTaskPool)
Processes requests targeting the Semantic Kernel agents.
public SemanticKernelService(ILoggerFactory loggerFactory, IOrchestrationContext callContext, IEnumerable<IResourceProviderService> resourceProviderServices, IHttpClientFactoryService httpClientFactoryService, ConcurrentTaskPool taskPool)
Parameters
loggerFactoryILoggerFactoryThe ILoggerFactory used to build loggers for logging.
callContextIOrchestrationContextStores context information extracted from the current HTTP request. This information is primarily used to inject HTTP headers into downstream HTTP calls.
resourceProviderServicesIEnumerable<IResourceProviderService>A collection of IResourceProviderService resource providers.
httpClientFactoryServiceIHttpClientFactoryServiceThe HTTP client factory service.
taskPoolConcurrentTaskPoolThe global TaskPool object that keeps track of active completion tasks.
Methods
GetCompletionOperationStatus(string, string)
Gets the status of a completion operation.
public Task<LongRunningOperation> GetCompletionOperationStatus(string instanceId, string operationId)
Parameters
instanceIdstringThe FoundationaLLM instance id.
operationIdstringThe OperationId for which to retrieve the status.
Returns
- Task<LongRunningOperation>
Returns an LongRunningOperation object containing the OperationId and Status.
StartCompletionOperation(string, LLMCompletionRequest)
Begins a completion operation.
public Task<LongRunningOperation> StartCompletionOperation(string instanceId, LLMCompletionRequest completionRequest)
Parameters
instanceIdstringThe FoundationaLLM instance id.
completionRequestLLMCompletionRequestThe completion request containing the user prompt and message history.
Returns
- Task<LongRunningOperation>
Returns an LongRunningOperation object containing the OperationId and Status.