Package com.google.genai.gaos
Class AsyncAgents
java.lang.Object
com.google.genai.gaos.AsyncAgents
-
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates a new Agent (Typed version for SDK).Deprecated.create(CreateAgentRequest request) Creates a new Agent (Typed version for SDK).create(CreateAgentRequest request, Options options) Creates a new Agent (Typed version for SDK).Deprecated.delete()Deletes an Agent.delete(DeleteAgentRequest request) Deletes an Agent.delete(DeleteAgentRequest request, Options options) Deletes an Agent.Deprecated.Deprecated.get()Gets a specific Agent.get(GetAgentRequest request) Gets a specific Agent.get(GetAgentRequest request, Options options) Gets a specific Agent.Deprecated.Deprecated.list()Lists all Agents.list(ListAgentsRequest request) Lists all Agents.list(ListAgentsRequest request, Options options) Lists all Agents.Deprecated.Deprecated.sync()Switches to the sync SDK.final AsyncTemplatesupdate()Updates an existing Agent.update(UpdateAgentRequest request) Updates an existing Agent.update(UpdateAgentRequest request, Options options) Updates an existing Agent.
-
Method Details
-
templates
-
sync
Switches to the sync SDK.- Returns:
- The sync SDK
-
list
Lists all Agents.- Returns:
- The async call builder
-
list
Lists all Agents.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<ListAgentsResponse>- The async response
-
list
public CompletableFuture<ListAgentsResponse> list(@Nonnull ListAgentsRequest request, @Nullable Options options) Lists all Agents.- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<ListAgentsResponse>- The async response
-
create
Creates a new Agent (Typed version for SDK).- Returns:
- The async call builder
-
create
Creates a new Agent (Typed version for SDK).- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<CreateAgentResponse>- The async response
-
create
public CompletableFuture<CreateAgentResponse> create(@Nonnull CreateAgentRequest request, @Nullable Options options) Creates a new Agent (Typed version for SDK).- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<CreateAgentResponse>- The async response
-
delete
Deletes an Agent.- Returns:
- The async call builder
-
delete
Deletes an Agent.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<DeleteAgentResponse>- The async response
-
delete
public CompletableFuture<DeleteAgentResponse> delete(@Nonnull DeleteAgentRequest request, @Nullable Options options) Deletes an Agent.- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<DeleteAgentResponse>- The async response
-
get
Gets a specific Agent.- Returns:
- The async call builder
-
get
Gets a specific Agent.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<GetAgentResponse>- The async response
-
get
public CompletableFuture<GetAgentResponse> get(@Nonnull GetAgentRequest request, @Nullable Options options) Gets a specific Agent.- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<GetAgentResponse>- The async response
-
update
Updates an existing Agent.- Returns:
- The async call builder
-
update
Updates an existing Agent.- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
CompletableFuture<UpdateAgentResponse>- The async response
-
update
public CompletableFuture<UpdateAgentResponse> update(@Nonnull UpdateAgentRequest request, @Nullable Options options) Updates an existing Agent.- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
CompletableFuture<UpdateAgentResponse>- The async response
-
listDirect
Deprecated. -
list
@Deprecated public CompletableFuture<ListAgentsResponse> list(@Nullable String apiVersion, @Nullable Integer pageSize, @Nullable String pageToken, @Nullable String template, @Nullable Options options) Deprecated. -
create
Deprecated. -
create
@Deprecated public CompletableFuture<CreateAgentResponse> create(@Nullable String apiVersion, @Nonnull Agent body, @Nullable Options options) Deprecated. -
delete
Deprecated. -
delete
@Deprecated public CompletableFuture<DeleteAgentResponse> delete(@Nullable String apiVersion, @Nonnull String id, @Nullable Options options) Deprecated. -
get
Deprecated. -
get
@Deprecated public CompletableFuture<GetAgentResponse> get(@Nullable String apiVersion, @Nonnull String id, @Nullable Options options) Deprecated.
-
create(com.google.genai.gaos.models.operations.CreateAgentRequest)withCreateAgentRequest.builder()instead.