Skip to main content
Every sub-agent is configured with a model and a system prompt. Pass them when you call create_subagent.

Model

Choose the model that powers your sub-agent. Pass the model ID via the model parameter.
ProviderModelModel ID
GoogleGemini 3.1 Pro Previewgemini-3.1-pro-preview
GoogleGemini 3 Flash Previewgemini-3-flash-preview
GoogleGemini 3.1 Flash Litegemini-3.1-flash-lite
AnthropicClaude Opus 4.7claude-opus-4-7
AnthropicClaude Sonnet 4.6claude-sonnet-4-6
AnthropicClaude Haiku 4.5claude-haiku-4-5-20251001
OpenAIGPT-5.5gpt-5.5
OpenAIGPT-5.4 Minigpt-5.4-mini
sub_agent = client.create_subagent(model="gemini-3-flash-preview")

System prompt

Set a system prompt to shape how your sub-agent behaves — its role, tone, constraints, or output format. Pass it via the system_prompt parameter.
sub_agent = client.create_subagent(
    model="gemini-3-flash-preview",
    system_prompt="You are a senior code reviewer. Respond only with structured JSON findings.",
)
The system prompt is applied for the lifetime of the sub-agent and cannot be changed after creation.