Class CoreRESTClient
- Namespace
- FoundationaLLM.Client.Core
- Assembly
- FoundationaLLM.Client.Core.dll
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
public class CoreRESTClient : ICoreRESTClient
- Inheritance
-
CoreRESTClient
- Implements
- Inherited Members
- Extension Methods
Constructors
CoreRESTClient()
Constructor for mocking. This does not initialize the clients.
public CoreRESTClient()
CoreRESTClient(string, TokenCredential, string)
Initializes a new instance of the CoreRESTClient class and configures IHttpClientFactory with a named instance for the CoreAPI (CoreAPI) based on the passed in URL.
public CoreRESTClient(string coreUri, TokenCredential credential, string instanceId)
Parameters
coreUristringThe base URI of the Core API.
credentialTokenCredentialA TokenCredential of an authenticated user or service principle from which the client library can generate auth tokens.
instanceIdstringThe unique (GUID) ID for the FoundationaLLM deployment. Locate this value in the FoundationaLLM Management Portal or in Azure App Config (FoundationaLLM:Instance:Id key)
CoreRESTClient(string, TokenCredential, string, APIClientSettings)
Initializes a new instance of the CoreRESTClient class and configures IHttpClientFactory with a named instance for the CoreAPI (CoreAPI) based on the passed in URL and optional client settings.
public CoreRESTClient(string coreUri, TokenCredential credential, string instanceId, APIClientSettings options)
Parameters
coreUristringThe base URI of the Core API.
credentialTokenCredentialA TokenCredential of an authenticated user or service principle from which the client library can generate auth tokens.
instanceIdstringThe unique (GUID) ID for the FoundationaLLM deployment. Locate this value in the FoundationaLLM Management Portal or in Azure App Config (FoundationaLLM:Instance:Id key)
optionsAPIClientSettingsAdditional options to configure the HTTP Client.
CoreRESTClient(string, ApiKeyCredential, string)
Initializes a new instance of the CoreRESTClient class and configures IHttpClientFactory with a named instance for the CoreAPI (CoreAPI) based on the passed in URL.
public CoreRESTClient(string coreUri, ApiKeyCredential credential, string instanceId)
Parameters
coreUristringThe base URI of the Core API.
credentialApiKeyCredentialAn System.ClientModel.ApiKeyCredential containing a valid agent access token.
instanceIdstringThe unique (GUID) ID for the FoundationaLLM deployment. Locate this value in the FoundationaLLM Management Portal or in Azure App Config (FoundationaLLM:Instance:Id key)
CoreRESTClient(string, ApiKeyCredential, string, APIClientSettings)
Initializes a new instance of the CoreRESTClient class and configures IHttpClientFactory with a named instance for the CoreAPI (CoreAPI) based on the passed in URL and optional client settings.
public CoreRESTClient(string coreUri, ApiKeyCredential credential, string instanceId, APIClientSettings options)
Parameters
coreUristringThe base URI of the Core API.
credentialApiKeyCredentialAn System.ClientModel.ApiKeyCredential containing a valid agent access token.
instanceIdstringThe unique (GUID) ID for the FoundationaLLM deployment. Locate this value in the FoundationaLLM Management Portal or in Azure App Config (FoundationaLLM:Instance:Id key)
optionsAPIClientSettingsAdditional options to configure the HTTP Client.
Properties
Attachments
Contains methods to interact with the Attachments endpoints.
public IAttachmentRESTClient Attachments { get; }
Property Value
Branding
Contains methods to interact with the Branding endpoints.
public IBrandingRESTClient Branding { get; }
Property Value
Completions
Contains methods to interact with the Orchestration endpoints.
public ICompletionRESTClient Completions { get; }
Property Value
Sessions
Contains methods to interact with the Sessions endpoints.
public ISessionRESTClient Sessions { get; }
Property Value
Status
Contains methods to interact with the Status endpoints.
public IStatusRESTClient Status { get; }
Property Value
UserProfiles
Contains methods to interact with the UserProfiles endpoints.
public IUserProfileRESTClient UserProfiles { get; }