Share via


PersistentAgentsClient Constructors

Definition

Overloads

PersistentAgentsClient()

Source:
PersistentAgentsClient.cs
Source:
PersistentAgentsClient.cs
protected PersistentAgentsClient();
Protected Sub New ()

Applies to

PersistentAgentsClient(String, TokenCredential)

Source:
PersistentAgentsClient.cs
Source:
PersistentAgentsClient.cs

Initializes a new instance of AzureAIClient.

public PersistentAgentsClient(string endpoint, Azure.Core.TokenCredential credential);
new Azure.AI.Agents.Persistent.PersistentAgentsClient : string * Azure.Core.TokenCredential -> Azure.AI.Agents.Persistent.PersistentAgentsClient
Public Sub New (endpoint As String, credential As TokenCredential)

Parameters

endpoint
String

The Azure AI Foundry project endpoint, in the form https://<aiservices-id>.services.ai.azure.com/api/projects/<project-name>

credential
TokenCredential

A credential used to authenticate to an Azure Service.

Exceptions

endpoint or credential is null.

is an empty string, and was expected to be non-empty.

Applies to

PersistentAgentsClient(String, TokenCredential, PersistentAgentsAdministrationClientOptions)

Source:
PersistentAgentsClient.cs
Source:
PersistentAgentsClient.cs

Initializes a new instance of AzureAIClient.

public PersistentAgentsClient(string endpoint, Azure.Core.TokenCredential credential, Azure.AI.Agents.Persistent.PersistentAgentsAdministrationClientOptions options);
new Azure.AI.Agents.Persistent.PersistentAgentsClient : string * Azure.Core.TokenCredential * Azure.AI.Agents.Persistent.PersistentAgentsAdministrationClientOptions -> Azure.AI.Agents.Persistent.PersistentAgentsClient
Public Sub New (endpoint As String, credential As TokenCredential, options As PersistentAgentsAdministrationClientOptions)

Parameters

endpoint
String

The Azure AI Foundry project endpoint, in the form https://<aiservices-id>.services.ai.azure.com/api/projects/<project-name>

credential
TokenCredential

A credential used to authenticate to an Azure Service.

options
PersistentAgentsAdministrationClientOptions

The options for configuring the client.

Exceptions

endpoint, or credential is null.

is an empty string, and was expected to be non-empty.

Applies to