次の方法で共有


PersistentAgentsClientBuilder Class

  • java.lang.Object
    • com.azure.ai.agents.persistent.PersistentAgentsClientBuilder

Implements

public final class PersistentAgentsClientBuilder
implements HttpTrait<PersistentAgentsClientBuilder>, ConfigurationTrait<PersistentAgentsClientBuilder>, TokenCredentialTrait<PersistentAgentsClientBuilder>, EndpointTrait<PersistentAgentsClientBuilder>

A builder for creating a new instance of the PersistentAgentsClient type.

Constructor Summary

Constructor Description
PersistentAgentsClientBuilder()

Create an instance of the PersistentAgentsClientBuilder.

Method Summary

Modifier and Type Method and Description
PersistentAgentsClientBuilder addPolicy(HttpPipelinePolicy customPolicy)

.

PersistentAgentsAsyncClient buildAsyncClient()

Builds an instance of PersistentAgentsAsyncClient class.

PersistentAgentsClient buildClient()

Builds an instance of PersistentAgentsClient class.

PersistentAgentsClientBuilder clientOptions(ClientOptions clientOptions)

.

PersistentAgentsClientBuilder configuration(Configuration configuration)

.

PersistentAgentsClientBuilder credential(TokenCredential tokenCredential)

.

PersistentAgentsClientBuilder endpoint(String endpoint)

.

PersistentAgentsClientBuilder httpClient(HttpClient httpClient)

.

PersistentAgentsClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)

.

PersistentAgentsClientBuilder pipeline(HttpPipeline pipeline)

.

PersistentAgentsClientBuilder retryOptions(RetryOptions retryOptions)

.

PersistentAgentsClientBuilder retryPolicy(RetryPolicy retryPolicy)

Sets The retry policy that will attempt to retry failed requests, if applicable.

PersistentAgentsClientBuilder serviceVersion(PersistentAgentsServiceVersion serviceVersion)

Sets Service version.

Methods inherited from java.lang.Object

Constructor Details

PersistentAgentsClientBuilder

public PersistentAgentsClientBuilder()

Create an instance of the PersistentAgentsClientBuilder.

Method Details

addPolicy

public PersistentAgentsClientBuilder addPolicy(HttpPipelinePolicy customPolicy)

.

Parameters:

customPolicy

buildAsyncClient

public PersistentAgentsAsyncClient buildAsyncClient()

Builds an instance of PersistentAgentsAsyncClient class.

Returns:

an instance of PersistentAgentsAsyncClient.

buildClient

public PersistentAgentsClient buildClient()

Builds an instance of PersistentAgentsClient class.

Returns:

an instance of PersistentAgentsClient.

clientOptions

public PersistentAgentsClientBuilder clientOptions(ClientOptions clientOptions)

.

Parameters:

clientOptions

configuration

public PersistentAgentsClientBuilder configuration(Configuration configuration)

.

Parameters:

configuration

credential

public PersistentAgentsClientBuilder credential(TokenCredential tokenCredential)

.

Parameters:

tokenCredential

endpoint

public PersistentAgentsClientBuilder endpoint(String endpoint)

.

Parameters:

endpoint

httpClient

public PersistentAgentsClientBuilder httpClient(HttpClient httpClient)

.

Parameters:

httpClient

httpLogOptions

public PersistentAgentsClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)

.

Parameters:

httpLogOptions

pipeline

public PersistentAgentsClientBuilder pipeline(HttpPipeline pipeline)

.

Parameters:

pipeline

retryOptions

public PersistentAgentsClientBuilder retryOptions(RetryOptions retryOptions)

.

Parameters:

retryOptions

retryPolicy

public PersistentAgentsClientBuilder retryPolicy(RetryPolicy retryPolicy)

Sets The retry policy that will attempt to retry failed requests, if applicable.

Parameters:

retryPolicy - the retryPolicy value.

Returns:

the PersistentAgentsClientBuilder.

serviceVersion

public PersistentAgentsClientBuilder serviceVersion(PersistentAgentsServiceVersion serviceVersion)

Sets Service version.

Parameters:

serviceVersion - the serviceVersion value.

Returns:

the PersistentAgentsClientBuilder.

Applies to