Table of Contents

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 ILoggerFactory

The ILoggerFactory used to build loggers for logging.

callContext IOrchestrationContext

Stores 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 IHttpClientFactoryService

The HTTP client factory service.

taskPool ConcurrentTaskPool

The 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 string

The FoundationaLLM instance id.

operationId string

The 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 string

The FoundationaLLM instance id.

completionRequest LLMCompletionRequest

The completion request containing the user prompt and message history.

Returns

Task<LongRunningOperation>

Returns an LongRunningOperation object containing the OperationId and Status.