Class GenerativeAiAgentClient
- java.lang.Object
-
- com.oracle.bmc.http.internal.BaseSyncClient
-
- com.oracle.bmc.generativeaiagent.GenerativeAiAgentClient
-
- All Implemented Interfaces:
GenerativeAiAgent,AutoCloseable
@Generated(value="OracleSDKGenerator", comments="API Version: 20240531") public class GenerativeAiAgentClient extends BaseSyncClient implements GenerativeAiAgent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenerativeAiAgentClient.BuilderBuilder class for this client.
-
Field Summary
Fields Modifier and Type Field Description StringclientCommonLibraryVersionCompatible SDK version, provided by the codegen.Optional<String>minimumClientCommonLibraryVersionFromClientMinimum compatible SDK version, maybe provided by the codegen.static ServiceSERVICEService instance for GenerativeAiAgent.
-
Constructor Summary
Constructors Constructor Description GenerativeAiAgentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)Deprecated.Use thebuilderinstead.GenerativeAiAgentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)Deprecated.Use thebuilderinstead.GenerativeAiAgentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.GenerativeAiAgentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.GenerativeAiAgentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)Deprecated.Use thebuilderinstead.GenerativeAiAgentClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)Deprecated.Use thebuilderinstead.GenerativeAiAgentClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)Deprecated.Use thebuilderinstead.GenerativeAiAgentClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)Deprecated.Use thebuilderinstead.
-
Method Summary
-
Methods inherited from class com.oracle.bmc.http.internal.BaseSyncClient
clientCall
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
Methods inherited from interface com.oracle.bmc.generativeaiagent.GenerativeAiAgent
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
-
-
-
-
Constructor Detail
-
GenerativeAiAgentClient
@Deprecated public GenerativeAiAgentClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeGenerativeAiAgentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
-
GenerativeAiAgentClient
@Deprecated public GenerativeAiAgentClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeGenerativeAiAgentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configuration
-
GenerativeAiAgentClient
@Deprecated public GenerativeAiAgentClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeGenerativeAiAgentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
-
GenerativeAiAgentClient
@Deprecated public GenerativeAiAgentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeGenerativeAiAgentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactory
-
GenerativeAiAgentClient
@Deprecated public GenerativeAiAgentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeGenerativeAiAgentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfigurators
-
GenerativeAiAgentClient
@Deprecated public GenerativeAiAgentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeGenerativeAiAgentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfiguratorsendpoint-ClientBuilderBase.endpoint(java.lang.String)
-
GenerativeAiAgentClient
@Deprecated public GenerativeAiAgentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeGenerativeAiAgentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfiguratorsendpoint-ClientBuilderBase.endpoint(java.lang.String)signingStrategyRequestSignerFactories-ClientBuilderBase.signingStrategyRequestSignerFactories
-
GenerativeAiAgentClient
@Deprecated public GenerativeAiAgentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeGenerativeAiAgentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfiguratorsendpoint-ClientBuilderBase.endpoint(java.lang.String)signingStrategyRequestSignerFactories-ClientBuilderBase.signingStrategyRequestSignerFactoriesexecutorService-GenerativeAiAgentClient.Builder.executorService
-
-
Method Detail
-
builder
public static GenerativeAiAgentClient.Builder builder()
Create a builder for this client.- Returns:
- builder
-
setRegion
public void setRegion(Region region)
Description copied from interface:GenerativeAiAgentSets the region to call (ex, Region.US_PHOENIX_1).Note, this will call
setEndpointafter resolving the endpoint. If the service is not available in this Region, however, an IllegalArgumentException will be raised.- Specified by:
setRegionin interfaceGenerativeAiAgent- Parameters:
region- The region of the service.
-
setRegion
public void setRegion(String regionId)
Description copied from interface:GenerativeAiAgentSets the region to call (ex, ‘us-phoenix-1’).Note, this will first try to map the region ID to a known Region and call
setRegion.If no known Region could be determined, it will create an endpoint based on the default endpoint format (
Region.formatDefaultRegionEndpoint(Service, String)and then callsetEndpoint.- Specified by:
setRegionin interfaceGenerativeAiAgent- Parameters:
regionId- The public region ID.
-
cancelWorkRequest
public CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request)
Description copied from interface:GenerativeAiAgentCancels a work request.- Specified by:
cancelWorkRequestin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
changeAgentCompartment
public ChangeAgentCompartmentResponse changeAgentCompartment(ChangeAgentCompartmentRequest request)
Description copied from interface:GenerativeAiAgentMoves an agent into a different compartment within the same tenancy.For information about moving resources between compartments, see Moving Resources to a Different Compartment.
- Specified by:
changeAgentCompartmentin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
changeAgentEndpointCompartment
public ChangeAgentEndpointCompartmentResponse changeAgentEndpointCompartment(ChangeAgentEndpointCompartmentRequest request)
Description copied from interface:GenerativeAiAgentMoves an endpoint into a different compartment within the same tenancy.For information about moving resources between compartments, see Moving Resources to a Different Compartment.
- Specified by:
changeAgentEndpointCompartmentin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
changeKnowledgeBaseCompartment
public ChangeKnowledgeBaseCompartmentResponse changeKnowledgeBaseCompartment(ChangeKnowledgeBaseCompartmentRequest request)
Description copied from interface:GenerativeAiAgentMoves a knowledge base into a different compartment within the same tenancy.For information about moving resources between compartments, see Moving Resources to a Different Compartment.
- Specified by:
changeKnowledgeBaseCompartmentin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createAgent
public CreateAgentResponse createAgent(CreateAgentRequest request)
Description copied from interface:GenerativeAiAgentCreates an agent.- Specified by:
createAgentin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createAgentEndpoint
public CreateAgentEndpointResponse createAgentEndpoint(CreateAgentEndpointRequest request)
Description copied from interface:GenerativeAiAgentCreates an endpoint.- Specified by:
createAgentEndpointin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createDataIngestionJob
public CreateDataIngestionJobResponse createDataIngestionJob(CreateDataIngestionJobRequest request)
Description copied from interface:GenerativeAiAgentCreates a data ingestion job.- Specified by:
createDataIngestionJobin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createDataSource
public CreateDataSourceResponse createDataSource(CreateDataSourceRequest request)
Description copied from interface:GenerativeAiAgentCreates a data source.- Specified by:
createDataSourcein interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createKnowledgeBase
public CreateKnowledgeBaseResponse createKnowledgeBase(CreateKnowledgeBaseRequest request)
Description copied from interface:GenerativeAiAgentCreates a knowledge base.- Specified by:
createKnowledgeBasein interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createTool
public CreateToolResponse createTool(CreateToolRequest request)
Description copied from interface:GenerativeAiAgentCreates a tool.- Specified by:
createToolin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteAgent
public DeleteAgentResponse deleteAgent(DeleteAgentRequest request)
Description copied from interface:GenerativeAiAgentDeletes an agent.- Specified by:
deleteAgentin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteAgentEndpoint
public DeleteAgentEndpointResponse deleteAgentEndpoint(DeleteAgentEndpointRequest request)
Description copied from interface:GenerativeAiAgentDeletes an endpoint.- Specified by:
deleteAgentEndpointin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteDataIngestionJob
public DeleteDataIngestionJobResponse deleteDataIngestionJob(DeleteDataIngestionJobRequest request)
Description copied from interface:GenerativeAiAgentDeletes a data ingestion job.- Specified by:
deleteDataIngestionJobin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteDataSource
public DeleteDataSourceResponse deleteDataSource(DeleteDataSourceRequest request)
Description copied from interface:GenerativeAiAgentDeletes a data source.- Specified by:
deleteDataSourcein interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteKnowledgeBase
public DeleteKnowledgeBaseResponse deleteKnowledgeBase(DeleteKnowledgeBaseRequest request)
Description copied from interface:GenerativeAiAgentDeletes a knowledge base.- Specified by:
deleteKnowledgeBasein interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteTool
public DeleteToolResponse deleteTool(DeleteToolRequest request)
Description copied from interface:GenerativeAiAgentDeletes a tool.- Specified by:
deleteToolin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getAgent
public GetAgentResponse getAgent(GetAgentRequest request)
Description copied from interface:GenerativeAiAgentGets information about an agent.- Specified by:
getAgentin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getAgentEndpoint
public GetAgentEndpointResponse getAgentEndpoint(GetAgentEndpointRequest request)
Description copied from interface:GenerativeAiAgentGets information about an endpoint.- Specified by:
getAgentEndpointin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getDataIngestionJob
public GetDataIngestionJobResponse getDataIngestionJob(GetDataIngestionJobRequest request)
Description copied from interface:GenerativeAiAgentGets information about a data ingestion job.- Specified by:
getDataIngestionJobin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getDataIngestionJobLogContent
public GetDataIngestionJobLogContentResponse getDataIngestionJobLogContent(GetDataIngestionJobLogContentRequest request)
Description copied from interface:GenerativeAiAgentReturns the raw log file for the specified data ingestion job in text format.- Specified by:
getDataIngestionJobLogContentin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getDataSource
public GetDataSourceResponse getDataSource(GetDataSourceRequest request)
Description copied from interface:GenerativeAiAgentGets information about a data source.- Specified by:
getDataSourcein interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getKnowledgeBase
public GetKnowledgeBaseResponse getKnowledgeBase(GetKnowledgeBaseRequest request)
Description copied from interface:GenerativeAiAgentGets information about a knowledge base.- Specified by:
getKnowledgeBasein interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getTool
public GetToolResponse getTool(GetToolRequest request)
Description copied from interface:GenerativeAiAgentGets information about a tool.- Specified by:
getToolin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getWorkRequest
public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request)
Description copied from interface:GenerativeAiAgentGets the details of a work request.- Specified by:
getWorkRequestin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listAgentEndpoints
public ListAgentEndpointsResponse listAgentEndpoints(ListAgentEndpointsRequest request)
Description copied from interface:GenerativeAiAgentGets a list of endpoints.- Specified by:
listAgentEndpointsin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listAgents
public ListAgentsResponse listAgents(ListAgentsRequest request)
Description copied from interface:GenerativeAiAgentGets a list of agents.- Specified by:
listAgentsin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listDataIngestionJobs
public ListDataIngestionJobsResponse listDataIngestionJobs(ListDataIngestionJobsRequest request)
Description copied from interface:GenerativeAiAgentGets a list of data ingestion jobs.- Specified by:
listDataIngestionJobsin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listDataSources
public ListDataSourcesResponse listDataSources(ListDataSourcesRequest request)
Description copied from interface:GenerativeAiAgentGets a list of data sources.- Specified by:
listDataSourcesin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listKnowledgeBases
public ListKnowledgeBasesResponse listKnowledgeBases(ListKnowledgeBasesRequest request)
Description copied from interface:GenerativeAiAgentGets a list of knowledge bases.- Specified by:
listKnowledgeBasesin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listTools
public ListToolsResponse listTools(ListToolsRequest request)
Description copied from interface:GenerativeAiAgentGets a list of tools.- Specified by:
listToolsin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listWorkRequestErrors
public ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request)
Description copied from interface:GenerativeAiAgentLists the errors for a work request.- Specified by:
listWorkRequestErrorsin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listWorkRequestLogs
public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request)
Description copied from interface:GenerativeAiAgentLists the logs for a work request.- Specified by:
listWorkRequestLogsin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listWorkRequests
public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request)
Description copied from interface:GenerativeAiAgentLists the work requests in a compartment.- Specified by:
listWorkRequestsin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateAgent
public UpdateAgentResponse updateAgent(UpdateAgentRequest request)
Description copied from interface:GenerativeAiAgentUpdates an agent.- Specified by:
updateAgentin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateAgentEndpoint
public UpdateAgentEndpointResponse updateAgentEndpoint(UpdateAgentEndpointRequest request)
Description copied from interface:GenerativeAiAgentUpdates an endpoint.- Specified by:
updateAgentEndpointin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateDataSource
public UpdateDataSourceResponse updateDataSource(UpdateDataSourceRequest request)
Description copied from interface:GenerativeAiAgentUpdates a data source.- Specified by:
updateDataSourcein interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateKnowledgeBase
public UpdateKnowledgeBaseResponse updateKnowledgeBase(UpdateKnowledgeBaseRequest request)
Description copied from interface:GenerativeAiAgentUpdates a knowledge base.- Specified by:
updateKnowledgeBasein interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateTool
public UpdateToolResponse updateTool(UpdateToolRequest request)
Description copied from interface:GenerativeAiAgentUpdates a tool.- Specified by:
updateToolin interfaceGenerativeAiAgent- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getWaiters
public GenerativeAiAgentWaiters getWaiters()
Description copied from interface:GenerativeAiAgentGets the pre-configured waiters available for resources for this service.- Specified by:
getWaitersin interfaceGenerativeAiAgent- Returns:
- The service waiters.
-
getPaginators
public GenerativeAiAgentPaginators getPaginators()
Description copied from interface:GenerativeAiAgentGets the pre-configured paginators available for list operations in this service which may return multiple pages of data.These paginators provide an
Iterableinterface so that service responses, or resources/records, can be iterated through without having to manually deal with pagination and page tokens.- Specified by:
getPaginatorsin interfaceGenerativeAiAgent- Returns:
- The service paginators.
-
getDefaultConfigurator
protected ClientConfigurator getDefaultConfigurator()
-
useRealmSpecificEndpointTemplate
public void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
This method should be used to enable or disable the use of realm-specific endpoint template.The default value is null. To enable the use of endpoint template defined for the realm in use, set the flag to true To disable the use of endpoint template defined for the realm in use, set the flag to false
- Parameters:
useOfRealmSpecificEndpointTemplateEnabled- This flag can be set to true or false to enable or disable the use of realm-specific endpoint template respectively
-
populateServiceParametersInEndpoint
public final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)
Populate the parameters in the endpoint with its corresponding value and update the base endpoint.The value will be populated iff the parameter in endpoint is a required request path parameter or a required request query parameter. If not, the parameter in the endpoint will be ignored and left blank.
- Parameters:
endpoint- The endpoint template in userequiredParametersMap- Map of parameter name as key and value set in request path or query parameter as value
-
updateBaseEndpoint
public final void updateBaseEndpoint(String endpoint)
This method should be used for parameterized endpoint templates only.This does not include {region} and {secondLevelDomain} parameters.
- Parameters:
endpoint- The updated endpoint to use
-
setEndpoint
public final void setEndpoint(String endpoint)
-
getEndpoint
public final String getEndpoint()
-
refreshClient
public final void refreshClient()
Rebuild the backingHttpClient.This will call
ClientConfigurators again, and can be used to e.g. refresh the SSL certificate.
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable
-
getClientCommonLibraryVersion
public String getClientCommonLibraryVersion()
-
-