Class AgentTemplateCreateParams

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

public class AgentTemplateCreateParams extends Object
AgentTemplateCreateParams

Parameters for creating an agent 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

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

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

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

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

      public Optional<String> 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

      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 AgentTemplateCreateParams.Builder builder()
    • withAgentConfig

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

      public AgentTemplateCreateParams withBaseAgent(@Nullable String baseAgent)
      The base agent to extend.
    • withDescription

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

      public AgentTemplateCreateParams withEnvironment(@Nullable Environment environment)
      Configuration for a custom environment.
    • withFromAgent

      public AgentTemplateCreateParams withFromAgent(@Nullable String 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.
    • withId

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

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

      public AgentTemplateCreateParams 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