Interface ICompletionRESTClient
- Namespace
- FoundationaLLM.Client.Core.Interfaces
- Assembly
- FoundationaLLM.Client.Core.dll
Provides methods to manage calls to the Core API's completions endpoints.
public interface ICompletionRESTClient
- Extension Methods
Methods
GetAgentsAsync()
Retrieves agents available to the user for orchestration and session-based requests.
Task<IEnumerable<ResourceProviderGetResult<AgentBase>>> GetAgentsAsync()
Returns
GetChatCompletionAsync(CompletionRequest)
Performs a completion request to the Core API. For session-based requests, set the CompletionRequest.SessionId property to the unique identifier for the session. Set the property to null or empty for non-session-based requests. Session-less completion requests do not maintain message history or data retention in Cosmos DB.
Task<Message> GetChatCompletionAsync(CompletionRequest completionRequest)
Parameters
completionRequest
CompletionRequestThe completion request data sent to the endpoint.