Share via


AzureAgentProvider(Uri, TokenCredential) Constructor

Definition

Provides functionality to interact with Foundry agents within a specified project context.

public AzureAgentProvider(Uri projectEndpoint, Azure.Core.TokenCredential projectCredentials);
new Microsoft.Agents.AI.Workflows.Declarative.AzureAgentProvider : Uri * Azure.Core.TokenCredential -> Microsoft.Agents.AI.Workflows.Declarative.AzureAgentProvider
Public Sub New (projectEndpoint As Uri, projectCredentials As TokenCredential)

Parameters

projectEndpoint
Uri

A Uri instance representing the endpoint URL of the Foundry project. This must be a valid, non-null URI pointing to the project.

projectCredentials
TokenCredential

The credentials used to authenticate with the Foundry project. This must be a valid instance of TokenCredential.

Remarks

This class is used to retrieve and manage AI agents associated with a Foundry project. It requires a project endpoint and credentials to authenticate requests.

Applies to