你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PersistentAgentsClient Constructors

Definition

Overloads

Name Description
PersistentAgentsClient()
PersistentAgentsClient(String, TokenCredential)

Initializes a new instance of AzureAIClient.

PersistentAgentsClient(String, TokenCredential, PersistentAgentsAdministrationClientOptions)

Initializes a new instance of AzureAIClient.

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