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
coreServiceICoreServiceThe Core service provides methods for getting completions from the orchestrator.
callContextIOrchestrationContextThe call context for the request.
resourceProviderServicesIEnumerable<IResourceProviderService>The list of IResourceProviderService resource provider services.
quotaServiceIQuotaServiceThe quota service.
loggerILogger<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
instanceIdstringThe FoundationaLLM instance id.
operationIdstringThe OperationId for which to retrieve the status.
Returns
- Task<LongRunningOperation>
 Returns a LongRunningOperation object containing the OperationId, Status, and result.