Class AgentTemplate

java.lang.Object
com.google.genai.gaos.models.agents.AgentTemplate

public class AgentTemplate extends Object
AgentTemplate

Reusable, versioned definition of an agent.

  • Constructor Details

  • Method Details

    • agentConfig

      public Optional<AgentConfig> agentConfig()
      Configuration parameters for the agent.
    • baseAgent

      public Optional<String> baseAgent()
      The base agent to extend.
    • createTime

      public Optional<OffsetDateTime> createTime()
      Output only. Timestamp when this template version was created.
    • description

      public Optional<String> description()
      Template description for developers.
    • environment

      public Optional<Environment> environment()
      Configuration for a custom environment.
    • id

      public Optional<String> id()
      User-provided ID on create (e.g. "video-agent"); returned with version suffix (e.g. "video-agent@v1").
    • systemInstruction

      public Optional<String> systemInstruction()
      System instruction for the agent template.
    • tools

      public Optional<List<AgentTool>> tools()
      The tools available to agents created from this template.
    • builder

      public static AgentTemplate.Builder builder()
    • withAgentConfig

      public AgentTemplate withAgentConfig(@Nullable AgentConfig agentConfig)
      Configuration parameters for the agent.
    • withBaseAgent

      public AgentTemplate withBaseAgent(@Nullable String baseAgent)
      The base agent to extend.
    • withCreateTime

      public AgentTemplate withCreateTime(@Nullable OffsetDateTime createTime)
      Output only. Timestamp when this template version was created.
    • withDescription

      public AgentTemplate withDescription(@Nullable String description)
      Template description for developers.
    • withEnvironment

      public AgentTemplate withEnvironment(@Nullable Environment environment)
      Configuration for a custom environment.
    • withId

      public AgentTemplate withId(@Nullable String id)
      User-provided ID on create (e.g. "video-agent"); returned with version suffix (e.g. "video-agent@v1").
    • withSystemInstruction

      public AgentTemplate withSystemInstruction(@Nullable String systemInstruction)
      System instruction for the agent template.
    • withTools

      public AgentTemplate withTools(@Nullable List<AgentTool> tools)
      The tools available to agents created from this template.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object