ProjectResponsesClient Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| ProjectResponsesClient() |
Initializes a new instance of ProjectResponsesClient for mocking. |
| ProjectResponsesClient(AuthenticationTokenProvider, ProjectResponsesClientOptions) |
Creates a new instance of ProjectResponsesClient. |
| ProjectResponsesClient(Uri, AuthenticationTokenProvider, ProjectResponsesClientOptions) |
Creates a new instance of ProjectResponsesClient. |
| ProjectResponsesClient(AuthenticationTokenProvider, ProjectResponsesClientOptions, AgentReference, String) |
Initializes a new instance of ProjectResponsesClient. |
| ProjectResponsesClient(Uri, AuthenticationTokenProvider, AgentReference, String, ProjectResponsesClientOptions) |
Creates a new instance of ProjectResponsesClient with default agent settings. |
ProjectResponsesClient()
- Source:
- ProjectResponsesClient.cs
- Source:
- ProjectResponsesClient.cs
Initializes a new instance of ProjectResponsesClient for mocking.
protected ProjectResponsesClient();
Protected Sub New ()
Applies to
ProjectResponsesClient(AuthenticationTokenProvider, ProjectResponsesClientOptions)
- Source:
- ProjectResponsesClient.cs
- Source:
- ProjectResponsesClient.cs
Creates a new instance of ProjectResponsesClient.
public ProjectResponsesClient(System.ClientModel.AuthenticationTokenProvider tokenProvider, Azure.AI.Extensions.OpenAI.ProjectResponsesClientOptions options);
new Azure.AI.Extensions.OpenAI.ProjectResponsesClient : System.ClientModel.AuthenticationTokenProvider * Azure.AI.Extensions.OpenAI.ProjectResponsesClientOptions -> Azure.AI.Extensions.OpenAI.ProjectResponsesClient
Public Sub New (tokenProvider As AuthenticationTokenProvider, options As ProjectResponsesClientOptions)
Parameters
- tokenProvider
- AuthenticationTokenProvider
The token provider used to authenticate requests.
- options
- ProjectResponsesClientOptions
The options used to configure the client.
Remarks
This constructor directly uses the supplied value from the provided OpenAI.OpenAIClientOptions.Endpoint and performs no additional automatic resolution.
Applies to
ProjectResponsesClient(Uri, AuthenticationTokenProvider, ProjectResponsesClientOptions)
- Source:
- ProjectResponsesClient.cs
- Source:
- ProjectResponsesClient.cs
Creates a new instance of ProjectResponsesClient.
public ProjectResponsesClient(Uri projectEndpoint, System.ClientModel.AuthenticationTokenProvider tokenProvider, Azure.AI.Extensions.OpenAI.ProjectResponsesClientOptions options = default);
new Azure.AI.Extensions.OpenAI.ProjectResponsesClient : Uri * System.ClientModel.AuthenticationTokenProvider * Azure.AI.Extensions.OpenAI.ProjectResponsesClientOptions -> Azure.AI.Extensions.OpenAI.ProjectResponsesClient
Public Sub New (projectEndpoint As Uri, tokenProvider As AuthenticationTokenProvider, Optional options As ProjectResponsesClientOptions = Nothing)
Parameters
- projectEndpoint
- Uri
The Azure AI project endpoint.
- tokenProvider
- AuthenticationTokenProvider
The token provider used to authenticate requests.
- options
- ProjectResponsesClientOptions
The options used to configure the client.
Remarks
This constructor automatically constructs the base URI for requests from the supplied projectEndpoint value. To use a base URI directly, use the alternative constructor and set OpenAI.OpenAIClientOptions.Endpoint on the supplied options.
Applies to
ProjectResponsesClient(AuthenticationTokenProvider, ProjectResponsesClientOptions, AgentReference, String)
- Source:
- ProjectResponsesClient.cs
- Source:
- ProjectResponsesClient.cs
Initializes a new instance of ProjectResponsesClient.
public ProjectResponsesClient(System.ClientModel.AuthenticationTokenProvider tokenProvider, Azure.AI.Extensions.OpenAI.ProjectResponsesClientOptions options = default, Azure.AI.Extensions.OpenAI.AgentReference defaultAgent = default, string defaultConversationId = default);
new Azure.AI.Extensions.OpenAI.ProjectResponsesClient : System.ClientModel.AuthenticationTokenProvider * Azure.AI.Extensions.OpenAI.ProjectResponsesClientOptions * Azure.AI.Extensions.OpenAI.AgentReference * string -> Azure.AI.Extensions.OpenAI.ProjectResponsesClient
Public Sub New (tokenProvider As AuthenticationTokenProvider, Optional options As ProjectResponsesClientOptions = Nothing, Optional defaultAgent As AgentReference = Nothing, Optional defaultConversationId As String = Nothing)
Parameters
- tokenProvider
- AuthenticationTokenProvider
The token provider used to authenticate requests.
- options
- ProjectResponsesClientOptions
The options used to configure the client.
- defaultAgent
- AgentReference
The default agent used for response requests.
- defaultConversationId
- String
The default conversation ID used for response requests.
Applies to
ProjectResponsesClient(Uri, AuthenticationTokenProvider, AgentReference, String, ProjectResponsesClientOptions)
- Source:
- ProjectResponsesClient.cs
- Source:
- ProjectResponsesClient.cs
Creates a new instance of ProjectResponsesClient with default agent settings.
public ProjectResponsesClient(Uri projectEndpoint, System.ClientModel.AuthenticationTokenProvider tokenProvider, Azure.AI.Extensions.OpenAI.AgentReference defaultAgent, string defaultConversationId = default, Azure.AI.Extensions.OpenAI.ProjectResponsesClientOptions options = default);
new Azure.AI.Extensions.OpenAI.ProjectResponsesClient : Uri * System.ClientModel.AuthenticationTokenProvider * Azure.AI.Extensions.OpenAI.AgentReference * string * Azure.AI.Extensions.OpenAI.ProjectResponsesClientOptions -> Azure.AI.Extensions.OpenAI.ProjectResponsesClient
Public Sub New (projectEndpoint As Uri, tokenProvider As AuthenticationTokenProvider, defaultAgent As AgentReference, Optional defaultConversationId As String = Nothing, Optional options As ProjectResponsesClientOptions = Nothing)
Parameters
- projectEndpoint
- Uri
The Azure AI project endpoint.
- tokenProvider
- AuthenticationTokenProvider
The token provider used to authenticate requests.
- defaultAgent
- AgentReference
The default agent used for response requests.
- defaultConversationId
- String
The default conversation ID used for response requests.
- options
- ProjectResponsesClientOptions
The options used to configure the client.