Class SemanticKernelService
- Namespace
- FoundationaLLM.Orchestration.Core.Services
- Assembly
- FoundationaLLM.Orchestration.Core.dll
The FoundationaLLM Semantic Kernal Service
public class SemanticKernelService : ISemanticKernelService, ILLMOrchestrationService
- Inheritance
-
SemanticKernelService
- Implements
- Inherited Members
- Extension Methods
Remarks
Constructor for the Semantic Kernal Service
Constructors
SemanticKernelService(IOptions<SemanticKernelServiceSettings>, ILogger<SemanticKernelService>, IOrchestrationContext, IHttpClientFactoryService)
The FoundationaLLM Semantic Kernal Service
public SemanticKernelService(IOptions<SemanticKernelServiceSettings> options, ILogger<SemanticKernelService> logger, IOrchestrationContext callContext, IHttpClientFactoryService httpClientFactoryService)
Parameters
optionsIOptions<SemanticKernelServiceSettings>loggerILogger<SemanticKernelService>callContextIOrchestrationContexthttpClientFactoryServiceIHttpClientFactoryService
Remarks
Constructor for the Semantic Kernal Service
Properties
Name
The name of the LLM orchestration service.
public string Name { get; }
Property Value
Methods
GetCompletion(string, LLMCompletionRequest)
Method for retrieving a completion from the orchestration service.
public Task<LLMCompletionResponse> GetCompletion(string instanceId, LLMCompletionRequest request)
Parameters
instanceIdstringThe FoundationaLLM instance ID.
requestLLMCompletionRequestHub populated request object containing agent, prompt, language model, and data source information
Returns
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.
GetStatus(string)
Get the status of the orchestration service.
public Task<ServiceStatusInfo> GetStatus(string instanceId)
Parameters
instanceIdstringThe FoundationaLLM instance ID.
Returns
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.