Table of Contents

Class CompletionsController

Namespace
FoundationaLLM.SemanticKernel.API.Controllers
Assembly
FoundationaLLM.SemanticKernel.API.dll

Wrapper for the Semantic Kernel service.

[ApiController]
[APIKeyAuthentication]
[Route("instances/{instanceId}")]
public class CompletionsController : ControllerBase
Inheritance
CompletionsController
Inherited Members
Extension Methods

Constructors

CompletionsController(ISemanticKernelService)

Wrapper for the Semantic Kernel service.

public CompletionsController(ISemanticKernelService semanticKernelService)

Parameters

semanticKernelService ISemanticKernelService

The Semantic Kernel service handling requests.

Methods

GetCompletionOperationStatus(string, string)

Gets the status of a completion operation.

[HttpGet("async-completions/{operationId}/status")]
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.

[HttpPost("async-completions")]
public Task<ActionResult<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<ActionResult<LongRunningOperation>>

Returns an LongRunningOperation object containing the OperationId and Status.