Table of Contents

Class AgentOrchestration

Namespace
FoundationaLLM.Orchestration.Core.Orchestration
Assembly
FoundationaLLM.Orchestration.Core.dll

Knowledge Management orchestration.

public class AgentOrchestration : OrchestrationBase
Inheritance
AgentOrchestration
Inherited Members
Extension Methods

Remarks

Constructor for default agent.

Constructors

AgentOrchestration(string, string, KnowledgeManagementAgent?, string, Dictionary<string, object>?, IOrchestrationContext, ILLMOrchestrationService, IUserPromptRewriteService, ISemanticCacheService, ILogger<OrchestrationBase>, IHttpClientFactoryService, Dictionary<string, IResourceProviderService>, bool?, string?, LongRunningOperationContext?, IContextServiceClient, Func<LLMCompletionRequest, Task>?)

Knowledge Management orchestration.

public AgentOrchestration(string instanceId, string agentObjectId, KnowledgeManagementAgent? agent, string agentWorkflowMainAIModelAPIEndpoint, Dictionary<string, object>? explodedObjects, IOrchestrationContext callContext, ILLMOrchestrationService orchestrationService, IUserPromptRewriteService userPromptRewriteService, ISemanticCacheService semanticCacheService, ILogger<OrchestrationBase> logger, IHttpClientFactoryService httpClientFactoryService, Dictionary<string, IResourceProviderService> resourceProviderServices, bool? dataSourceAccessDenied, string? vectorStoreId, LongRunningOperationContext? longRunningOperationContext, IContextServiceClient contextServiceClient, Func<LLMCompletionRequest, Task>? completionRequestObserver = null)

Parameters

instanceId string

The FoundationaLLM instance identifier.

agentObjectId string

The FoundationaLLM object identifier of the agent.

agent KnowledgeManagementAgent

The KnowledgeManagementAgent agent.

agentWorkflowMainAIModelAPIEndpoint string

The URL of the API endpoint of the main AI model used by the agent workflow.

explodedObjects Dictionary<string, object>

A dictionary of objects retrieved from various object ids related to the agent. For more details see Objects .

callContext IOrchestrationContext

The call context of the request being handled.

orchestrationService ILLMOrchestrationService
userPromptRewriteService IUserPromptRewriteService

The IUserPromptRewriteService used to rewrite user prompts.

semanticCacheService ISemanticCacheService

The ISemanticCacheService used to cache and retrieve completion responses.

logger ILogger<OrchestrationBase>

The logger used for logging.

httpClientFactoryService IHttpClientFactoryService

The IHttpClientFactoryService used to create HttpClient instances.

resourceProviderServices Dictionary<string, IResourceProviderService>

The dictionary of IResourceProviderService

dataSourceAccessDenied bool?

Inidicates that access was denied to all underlying data sources.

vectorStoreId string

The OpenAI Assistants or Azure AI Agent Service vector store id.

longRunningOperationContext LongRunningOperationContext

The LongRunningOperationContext providing the context of the long-running operation.

contextServiceClient IContextServiceClient

The IContextServiceClient used to interact with the context service.

completionRequestObserver Func<LLMCompletionRequest, Task>

An optional observer for completion requests.

Remarks

Constructor for default agent.

Methods

GetCompletion(CompletionRequest)

The call to execute a completion after the agent is configured.

public override Task<CompletionResponse> GetCompletion(CompletionRequest completionRequest)

Parameters

completionRequest CompletionRequest

Returns

Task<CompletionResponse>

GetCompletionOperationStatus(string)

Gets the status of a completion operation.

public override Task<LongRunningOperation> GetCompletionOperationStatus(string operationId)

Parameters

operationId string

The identifier of the completion operation.

Returns

Task<LongRunningOperation>

A LongRunningOperation object providing details about the running operation.

StartCompletionOperation(CompletionRequest)

Starts a completion operation.

public override Task<LongRunningOperation> StartCompletionOperation(CompletionRequest completionRequest)

Parameters

completionRequest CompletionRequest

The CompletionRequest providing details about the completion request.

Returns

Task<LongRunningOperation>

A LongRunningOperation object providing details about the newly started operation.