managed-agents-preview only.Expand description
Agents: full CRUD + version history.
An agent defines how Claude behaves within a session: model
(optionally with fast inference speed), system prompt, MCP
servers, skills, tools (built-in toolset + MCP toolsets + custom
tools), description, metadata. Agents are versioned – creating one
starts at version 1 and any Agents::update increments the
version. Sessions reference agents either at the latest version
(string ID) or pinned to a specific version (see
AgentRef).
§Forward compatibility
All wrapper enums in this module follow the
Known | Other(serde_json::Value) pattern. Brand-new server
variants – a new permission policy, a new toolset shape, a new
skill type – deserialize into Other preserving the raw JSON, so
upgrading the server without upgrading the SDK doesn’t break parsing.
Structs§
- Agent
- An agent definition.
- Agents
- Namespace handle for the Agents API.
- Anthropic
Skill - Body of
Skill::Anthropic. - Builtin
Tool Config - Per-tool override on a built-in toolset.
- Builtin
Toolset - Body of
AgentTool::BuiltinToolset. - Callable
Agent - Reference to another agent that this agent is permitted to call.
- Create
Agent Request - Request body for
POST /v1/agents. - Create
Agent Request Builder - Builder for
CreateAgentRequest. - Custom
Skill - Body of
Skill::Custom. - Custom
Tool - Custom tool executed by the API client (not the agent). Calls
surface as
agent.custom_tool_useevents; respond withuser.custom_tool_result. - Custom
Tool Input Schema - JSON Schema for a custom tool’s input parameters.
- List
Agent Versions Params - Optional knobs for
Agents::list_versions. - List
Agents Params - Optional knobs for
Agents::list. - McpTool
Config - Per-tool override on an MCP toolset.
- McpToolset
- Body of
AgentTool::McpToolset. - Metadata
Patch - Metadata patch on
UpdateAgentRequest. Each entry is either aString(upsert that key to the given value) orNone(delete that key). Keys not present in the patch are preserved. - Toolset
Default Config - Default configuration for all tools in a toolset.
- Update
Agent Request - Request body for
POST /v1/agents/{id}(update).
Enums§
- Agent
McpServer - MCP server reference on an agent.
- Agent
Model - Model identifier. Wire form is either a bare string or a
{id, speed}object. - Agent
Tool - One tool entry on an agent.
- Builtin
Tool Name - Built-in agent tool identifier.
- Model
Speed - Inference speed mode.
Fastcharges premium pricing; not all models support it. - Permission
Policy - Permission policy controlling whether tool calls require user
confirmation. Forward-compatible: unknown policy types fall through
to
Self::Other. - Skill
- A skill referenced on an agent. Forward-compatible: unknown skill
types fall through to
Self::Other.