Class AgentTemplate
java.lang.Object
com.google.genai.gaos.models.agents.AgentTemplate
AgentTemplate
Reusable, versioned definition of an agent.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAgentTemplate(AgentConfig agentConfig, String baseAgent, OffsetDateTime createTime, String description, Environment environment, String id, String systemInstruction, List<AgentTool> tools) -
Method Summary
Modifier and TypeMethodDescriptionConfiguration parameters for the agent.The base agent to extend.static AgentTemplate.Builderbuilder()Output only.Template description for developers.Configuration for a custom environment.booleaninthashCode()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.withCreateTime(OffsetDateTime createTime) Output only.withDescription(String description) Template description for developers.withEnvironment(Environment environment) Configuration for a custom environment.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
-
AgentTemplate
public AgentTemplate(@Nullable AgentConfig agentConfig, @Nullable String baseAgent, @Nullable OffsetDateTime createTime, @Nullable String description, @Nullable Environment environment, @Nullable String id, @Nullable String systemInstruction, @Nullable List<AgentTool> tools) -
AgentTemplate
public AgentTemplate()
-
-
Method Details
-
agentConfig
Configuration parameters for the agent. -
baseAgent
The base agent to extend. -
createTime
Output only. Timestamp when this template version was created. -
description
Template description for developers. -
environment
Configuration for a custom environment. -
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. -
withCreateTime
Output only. Timestamp when this template version was created. -
withDescription
Template description for developers. -
withEnvironment
Configuration for a custom environment. -
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
-