Table of Contents

Class CompletionsStatusController

Namespace
FoundationaLLM.Core.API.Controllers
Assembly
FoundationaLLM.Core.API.dll

Provides methods for retrieving and managing completions.

[Authorize(AuthenticationSchemes = "Bearer", Policy = "MicrosoftEntraIDStandard")]
[Authorize(AuthenticationSchemes = "AgentAccessToken", Policy = "FoundationaLLMAgentAccessToken")]
[ApiController]
[Route("instances/{instanceId}")]
public class CompletionsStatusController : ControllerBase
Inheritance
CompletionsStatusController
Inherited Members
Extension Methods

Remarks

Constructor for the Completions Controller.

Constructors

CompletionsStatusController(ICoreService, IOrchestrationContext, IEnumerable<IResourceProviderService>, IQuotaService, ILogger<CompletionsController>)

Methods for orchestration services exposed by the Gatekeeper API service.

public CompletionsStatusController(ICoreService coreService, IOrchestrationContext callContext, IEnumerable<IResourceProviderService> resourceProviderServices, IQuotaService quotaService, ILogger<CompletionsController> logger)

Parameters

coreService ICoreService

The Core service provides methods for getting completions from the orchestrator.

callContext IOrchestrationContext

The call context for the request.

resourceProviderServices IEnumerable<IResourceProviderService>

The list of IResourceProviderService resource provider services.

quotaService IQuotaService

The quota service.

logger ILogger<CompletionsController>

The logging interface used to log under the CompletionsController type name.

Remarks

Constructor for the Orchestration Controller.

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 a LongRunningOperation object containing the OperationId, Status, and result.