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
loggerFactory
ILoggerFactoryThe ILoggerFactory used to build loggers for logging.
callContext
IOrchestrationContextStores context information extracted from the current HTTP request. This information is primarily used to inject HTTP headers into downstream HTTP calls.
resourceProviderServices
IEnumerable<IResourceProviderService>A collection of IResourceProviderService resource providers.
httpClientFactoryService
IHttpClientFactoryServiceThe HTTP client factory service.
taskPool
ConcurrentTaskPoolThe 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
instanceId
stringThe FoundationaLLM instance id.
operationId
stringThe 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
instanceId
stringThe FoundationaLLM instance id.
completionRequest
LLMCompletionRequestThe completion request containing the user prompt and message history.
Returns
- Task<LongRunningOperation>
Returns an LongRunningOperation object containing the OperationId and Status.