Package com.google.genai.gaos
Class Templates
java.lang.Object
com.google.genai.gaos.Templates
-
Method Summary
Modifier and TypeMethodDescriptionasync()Switches to the async SDK.create()Creates a new AgentTemplate.create(CreateAgentTemplateRequest request) Creates a new AgentTemplate.create(CreateAgentTemplateRequest request, Options options) Creates a new AgentTemplate.delete()Deletes an AgentTemplate and all its versions.delete(DeleteAgentTemplateRequest request) Deletes an AgentTemplate and all its versions.delete(DeleteAgentTemplateRequest request, Options options) Deletes an AgentTemplate and all its versions.get()Gets a specific AgentTemplate.get(GetAgentTemplateRequest request) Gets a specific AgentTemplate.get(GetAgentTemplateRequest request, Options options) Gets a specific AgentTemplate.list()Lists all AgentTemplates.list(ListAgentTemplatesRequest request) Lists all AgentTemplates.list(ListAgentTemplatesRequest request, Options options) Lists all AgentTemplates.update()Updates an existing AgentTemplate by creating a new immutable version.update(UpdateAgentTemplateRequest request) Updates an existing AgentTemplate by creating a new immutable version.update(UpdateAgentTemplateRequest request, Options options) Updates an existing AgentTemplate by creating a new immutable version.
-
Method Details
-
async
Switches to the async SDK.- Returns:
- The async SDK
-
list
Lists all AgentTemplates.- Returns:
- The call builder
-
list
Lists all AgentTemplates.- 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
public ListAgentTemplatesResponse list(@Nonnull ListAgentTemplatesRequest request, @Nullable Options options) Lists all AgentTemplates.- 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 AgentTemplate.- Returns:
- The call builder
-
create
Creates a new AgentTemplate.- 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
public CreateAgentTemplateResponse create(@Nonnull CreateAgentTemplateRequest request, @Nullable Options options) Creates a new AgentTemplate.- 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 AgentTemplate and all its versions.- Returns:
- The call builder
-
delete
Deletes an AgentTemplate and all its versions.- 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
public DeleteAgentTemplateResponse delete(@Nonnull DeleteAgentTemplateRequest request, @Nullable Options options) Deletes an AgentTemplate and all its versions.- 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 AgentTemplate.- Returns:
- The call builder
-
get
Gets a specific AgentTemplate.- 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
public GetAgentTemplateResponse get(@Nonnull GetAgentTemplateRequest request, @Nullable Options options) Gets a specific AgentTemplate.- 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 AgentTemplate by creating a new immutable version.- Returns:
- The call builder
-
update
Updates an existing AgentTemplate by creating a new immutable version.- 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
public UpdateAgentTemplateResponse update(@Nonnull UpdateAgentTemplateRequest request, @Nullable Options options) Updates an existing AgentTemplate by creating a new immutable version.- 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
-