- Tools (required): The tools that the agent and any subagents will have access to.
- Instructions (required): Custom instructions that serve as part of the agent’s prompt. This supplements the built-in system prompt.
- Sub-agents: Specialized subagents for specific tasks.
- Model: The model to use for the agent.
Tools
Required. A list of tools that the agent and any subagents will have access to.Instructions
Required. Custom instructions that serve as part of the agent’s prompt. This supplements the built-in system prompt.Sub-agents
Define specialized subagents for specific tasks:Model
Both the Python and JavaScript implementations default to"claude-sonnet-4-20250514"
but support custom models:
Custom models
Custom models are only supported in the Python implementation.
deepagents
uses "claude-sonnet-4-20250514"
. You can customize this by passing any LangChain model object.
For example, use OpenAI’s gpt-oss
model via Ollama: