Class AgentTemplateCreateParams
java.lang.Object
com.google.genai.gaos.models.agents.AgentTemplateCreateParams
AgentTemplateCreateParams
Parameters for creating an agent template.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAgentTemplateCreateParams(AgentConfig agentConfig, String baseAgent, String description, Environment environment, String fromAgent, String id, String systemInstruction, List<AgentTool> tools) -
Method Summary
Modifier and TypeMethodDescriptionConfiguration parameters for the agent.The base agent to extend.builder()Template description for developers.Configuration for a custom environment.booleanInput only.inthashCode()id()User-provided ID on create (e.g.System instruction for the agent template.tools()The tools available to agents created from this template.toString()withAgentConfig(AgentConfig agentConfig) Configuration parameters for the agent.withBaseAgent(String baseAgent) The base agent to extend.withDescription(String description) Template description for developers.withEnvironment(Environment environment) Configuration for a custom environment.withFromAgent(String fromAgent) Input only.User-provided ID on create (e.g.withSystemInstruction(String systemInstruction) System instruction for the agent template.The tools available to agents created from this template.
-
Constructor Details
-
AgentTemplateCreateParams
public AgentTemplateCreateParams(@Nullable AgentConfig agentConfig, @Nullable String baseAgent, @Nullable String description, @Nullable Environment environment, @Nullable String fromAgent, @Nullable String id, @Nullable String systemInstruction, @Nullable List<AgentTool> tools) -
AgentTemplateCreateParams
public AgentTemplateCreateParams()
-
-
Method Details
-
agentConfig
Configuration parameters for the agent. -
baseAgent
The base agent to extend. -
description
Template description for developers. -
environment
Configuration for a custom environment. -
fromAgent
Input only. ID of an existing agent to create the template from. The new template version snapshots the agent's configuration (`base_agent`, `agent_config`, `system_instruction`, `tools`) and its `.agents/` directory, but not `/workspace` or credentials. Only valid on create; returns NOT_FOUND if the agent does not exist. -
id
User-provided ID on create (e.g. "video-agent"); returned with version suffix (e.g. "video-agent@v1"). -
systemInstruction
System instruction for the agent template. -
tools
The tools available to agents created from this template. -
builder
-
withAgentConfig
Configuration parameters for the agent. -
withBaseAgent
The base agent to extend. -
withDescription
Template description for developers. -
withEnvironment
Configuration for a custom environment. -
withFromAgent
Input only. ID of an existing agent to create the template from. The new template version snapshots the agent's configuration (`base_agent`, `agent_config`, `system_instruction`, `tools`) and its `.agents/` directory, but not `/workspace` or credentials. Only valid on create; returns NOT_FOUND if the agent does not exist. -
withId
User-provided ID on create (e.g. "video-agent"); returned with version suffix (e.g. "video-agent@v1"). -
withSystemInstruction
System instruction for the agent template. -
withTools
The tools available to agents created from this template. -
equals
-
hashCode
public int hashCode() -
toString
-