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
stringThe FoundationaLLM instance identifier.
agentObjectId
stringThe FoundationaLLM object identifier of the agent.
agent
KnowledgeManagementAgentThe KnowledgeManagementAgent agent.
agentWorkflowMainAIModelAPIEndpoint
stringThe 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
IOrchestrationContextThe call context of the request being handled.
orchestrationService
ILLMOrchestrationServiceuserPromptRewriteService
IUserPromptRewriteServiceThe IUserPromptRewriteService used to rewrite user prompts.
semanticCacheService
ISemanticCacheServiceThe ISemanticCacheService used to cache and retrieve completion responses.
logger
ILogger<OrchestrationBase>The logger used for logging.
httpClientFactoryService
IHttpClientFactoryServiceThe 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
stringThe OpenAI Assistants or Azure AI Agent Service vector store id.
longRunningOperationContext
LongRunningOperationContextThe LongRunningOperationContext providing the context of the long-running operation.
contextServiceClient
IContextServiceClientThe 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
GetCompletionOperationStatus(string)
Gets the status of a completion operation.
public override Task<LongRunningOperation> GetCompletionOperationStatus(string operationId)
Parameters
operationId
stringThe 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
CompletionRequestThe CompletionRequest providing details about the completion request.
Returns
- Task<LongRunningOperation>
A LongRunningOperation object providing details about the newly started operation.