AgentTemplateCreateParams: {
    agent_config?: AgentConfig;
    base_agent?: string;
    description?: string;
    environment?: Environment;
    from_agent?: string;
    id?: string;
    system_instruction?: string;
    tools?: AgentTool[];
}

Parameters for creating an agent template.

Type declaration

  • Optionalagent_config?: AgentConfig

    Configuration parameters for the agent.

  • Optionalbase_agent?: string

    The base agent to extend.

  • Optionaldescription?: string

    Template description for developers.

  • Optionalenvironment?: Environment

    Configuration for a custom environment.

  • Optionalfrom_agent?: string

    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.

  • Optionalid?: string

    User-provided ID on create (e.g. "video-agent"); returned with version

    suffix (e.g. "video-agent@v1").

  • Optionalsystem_instruction?: string

    System instruction for the agent template.

  • Optionaltools?: AgentTool[]

    The tools available to agents created from this template.