An agent definition for the CreateAgent API. This message is the target for annotation-parser-based JSON parsing. New format: { "id": "customer-sentinel", "base_agent": "", "system_instruction": "...", "base_environment": { "type": "remote", "sources": [...] }, "tools": [ {"type": "code_execution"} ] }

interface Agent {
    base_agent?: string;
    base_environment?: string | GeminiNextGenAPIClient.Interactions.Environment;
    description?: string;
    id?: string;
    system_instruction?: string;
    tools?: (
        | GeminiNextGenAPIClient.Agents.Agent.CodeExecution
        | GeminiNextGenAPIClient.Agents.Agent.GoogleSearch
        | GeminiNextGenAPIClient.Agents.Agent.URLContext
        | GeminiNextGenAPIClient.Agents.Agent.MCPServer
    )[];
}

Properties

base_agent?: string

The base agent to extend.

base_environment?: string | GeminiNextGenAPIClient.Interactions.Environment

The environment configuration for the agent.

description?: string

Agent description for developers to quickly read and understand.

id?: string

The unique identifier for the agent.

system_instruction?: string

System instruction for the agent.

The tools available to the agent.