PersistentAgentsClientBuilder Class
- java.
lang. Object - com.
azure. ai. agents. persistent. PersistentAgentsClientBuilder
- com.
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 Persistent |
Method Summary
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:
buildAsyncClient
public PersistentAgentsAsyncClient buildAsyncClient()
Builds an instance of PersistentAgentsAsyncClient class.
Returns:
buildClient
public PersistentAgentsClient buildClient()
Builds an instance of PersistentAgentsClient class.
Returns:
clientOptions
public PersistentAgentsClientBuilder clientOptions(ClientOptions clientOptions)
.
Parameters:
configuration
public PersistentAgentsClientBuilder configuration(Configuration configuration)
.
Parameters:
credential
public PersistentAgentsClientBuilder credential(TokenCredential tokenCredential)
.
Parameters:
endpoint
public PersistentAgentsClientBuilder endpoint(String endpoint)
.
Parameters:
httpClient
public PersistentAgentsClientBuilder httpClient(HttpClient httpClient)
.
Parameters:
httpLogOptions
public PersistentAgentsClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)
.
Parameters:
pipeline
public PersistentAgentsClientBuilder pipeline(HttpPipeline pipeline)
.
Parameters:
retryOptions
public PersistentAgentsClientBuilder retryOptions(RetryOptions retryOptions)
.
Parameters:
retryPolicy
public PersistentAgentsClientBuilder retryPolicy(RetryPolicy retryPolicy)
Sets The retry policy that will attempt to retry failed requests, if applicable.
Parameters:
Returns:
serviceVersion
public PersistentAgentsClientBuilder serviceVersion(PersistentAgentsServiceVersion serviceVersion)
Sets Service version.
Parameters:
Returns: