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