Claude SDK
Tinitiate AI IT Training • 2026 Edition

CLAUDE SDK ROADMAP (2026)

Two tracks: Entrepreneur & Enterprise Claude AI Engineer

Build on Claude at the level of control you need: the Messages API and Tool Runner for agents with your own tools, the Claude Agent SDK for the Claude Code harness with built-in file, shell and web tools, and Managed Agents when Anthropic should host the loop and sandbox. Pick the Entrepreneur track to ship a product fast, or the Enterprise Claude AI Engineer track to run governed agents at scale.

01

Setup, Models & Credentials

  • Install the API SDK (anthropic) and, if you want the Claude Code harness, claude-agent-sdk
  • The client reads ANTHROPIC_API_KEY
  • The same models are available on Amazon Bedrock, Google Vertex AI and Microsoft Foundry through dedicated clients
  • anthropic
  • claude-agent-sdk
  • Anthropic()
  • messages.create
  • AnthropicBedrockMantle / AnthropicVertex / AnthropicFoundry
LEARN
Claude
Anthropic
Python
02

Harness, Runtime & Sandbox

  • Four ways to build: a manual loop over messages.create; the Tool Runner, where the SDK drives the loop over tools you define; Managed Agents, where Anthropic hosts the loop and a sandbox; or the Claude Agent SDK, which runs the Claude Code harness on your infrastructure
  • Sandbox: Server-side code execution tool; Managed Agents give each session a container
  • manual loop
  • tool_runner
  • Managed Agents
  • claude_agent_sdk.query
  • ClaudeAgentOptions
LEARN
Claude
Docker
Anthropic
03

State & Data Management

  • The Messages API is stateless: you own the conversation and send it each turn
  • Append the assistant's full content blocks (tool_use, thinking, compaction), not only its text
  • The Agent SDK manages session state for you
  • messages[]
  • role: user / assistant
  • content blocks
  • mid-conversation system messages
LEARN
Claude
Anthropic
Python
04

Memory & Persistence

  • Server-side compaction summarises old context automatically as a thread grows
  • The memory tool lets Claude read and write files in a memory directory you host, for knowledge that outlives a conversation
  • Agent SDK sessions resume by id
  • compact_20260112
  • memory_20250818
  • context editing
  • resume=session_id
LEARN
Claude
Markdown
Anthropic
05

Edges, Routing & Control Flow

  • There is no graph DSL: in a workflow, control flow is your code; in an agent, the model chooses the next tool
  • Use structured outputs to get a reliable decision, then branch on it in code
  • output_config.format
  • json_schema
  • code-driven routing
  • stop_reason
LEARN
Claude
Anthropic
Python
06

Calling, Starting & Stopping

  • Stream long or tool-heavy responses and read stop_reason: end_turn, tool_use, max_tokens, pause_turn or refusal
  • In the Agent SDK, ClaudeSDKClient keeps an interactive session open and interrupt() stops it mid-run
  • messages.stream
  • get_final_message
  • stop_reason
  • ClaudeSDKClient
  • interrupt()
LEARN
Claude
Anthropic
Python
07

Errors, Retries & Limits

  • The SDK retries 408, 409, 429 and 5xx responses and connection errors with backoff (two retries by default)
  • Catch typed errors from most to least specific, and check for a refusal stop reason before reading content
  • max_retries
  • RateLimitError
  • APIStatusError
  • APIConnectionError
  • stop_reason == refusal
LEARN
Claude
Anthropic
Python
08

Function Calling & Tools

  • Define tools with JSON schema, or with @beta_tool where the signature and docstring become the schema
  • The Tool Runner calls the API, runs your functions and loops until Claude is done. strict: true guarantees schema-valid inputs
  • @beta_tool
  • client.beta.messages.tool_runner
  • until_done()
  • strict: true
  • parallel tool use
LEARN
Claude
Pydantic
Anthropic
09

RAG Pipeline

  • Retrieve with your own search, pass the passages as document blocks with citations enabled, and Claude returns answers whose text blocks cite the exact source spans
  • Cache the stable part of the corpus to cut cost on repeat questions
  • document blocks
  • citations: enabled
  • Files API
  • prompt caching
  • web_search tool
LEARN
Claude
Pinecone
Anthropic
10

MCP Integration

  • The MCP connector lets the API call remote MCP servers directly: declare the server in mcp_servers and reference it with an mcp_toolset tool
  • In the Agent SDK, pass mcp_servers or build in-process tools with create_sdk_mcp_server
  • mcp_servers
  • mcp_toolset
  • mcp-client-2025-11-20
  • create_sdk_mcp_server
LEARN
Claude
MCP
Anthropic
11

Context Files: skills.md, memory.md, tools.md

  • skills.md: Agent Skills (SKILL.md). Skill folders with SKILL.md load on demand in the API and Agent SDK
  • memory.md: CLAUDE.md + memory tool. The Agent SDK loads CLAUDE.md; the memory tool reads and writes memory files
  • tools.md: JSON-schema tools. Name, description and input_schema; MCP servers describe their own tools
  • Agent Skills (SKILL.md)
  • CLAUDE.md + memory tool
  • JSON-schema tools
LEARN
Markdown
Claude
Anthropic
12

Multi-Agent Orchestration

  • In the Agent SDK, define subagents with their own prompt and tool set; the main agent delegates and each subagent keeps its own context
  • Managed Agents can fan work out across several agents server-side
  • With the API, an orchestrator calls worker models as tools
  • AgentDefinition
  • agents={...}
  • subagent context isolation
  • Managed Agents multiagent
LEARN
Claude
Anthropic
Python
13

Human-in-the-Loop (HITL)

  • In the Agent SDK, can_use_tool is called before tool use so a person can allow or deny it; permission modes set the default
  • With the API, your loop pauses before running a tool_use block until someone approves
  • can_use_tool
  • PermissionResultAllow / Deny
  • permission_mode
  • approval before tool_result
LEARN
Claude
Anthropic
Python
14

Guardrails & Safety

  • Hooks run your code at fixed points: PreToolUse can deny a call, PostToolUse can inspect results
  • Combine with allowed and disallowed tools, a sandboxed working directory, and stop_reason checks for refusals
  • hooks
  • PreToolUse / PostToolUse
  • HookMatcher
  • disallowed_tools
  • permissionDecision
LEARN
Claude
Anthropic
Python
15

Testing & Evaluation

  • Build an eval set from real or synthetic cases, grade with code where possible and an LLM judge where not, and run it on every prompt or model change
  • The Message Batches API runs large eval sets at half the cost
  • eval datasets
  • code graders
  • LLM-as-judge
  • Message Batches
  • count_tokens
LEARN
Claude
Anthropic
pytest
16

Auditing & Tracing

  • Log the request id, model, stop reason and token usage of every call, including cache reads
  • Agent SDK hooks record every tool call; OpenTelemetry exports traces; Managed Agents sessions are inspectable event by event in the Console
  • _request_id
  • usage
  • PostToolUse hooks
  • OpenTelemetry
  • Console session viewer
LEARN
Claude
Anthropic
OpenTelemetry
17

MLOps, LLMOps & Edge Deployment

  • Pin model ids and migrate with evals
  • Managed Agents stores versioned agent configs (kept in git and synced with ant apply) and runs scheduled deployments
  • Agent SDK services ship as containers with a sandboxed filesystem
  • Edge: Cloud API. Models run in the cloud; an edge host can run the Agent SDK and call the API
  • pinned model ids
  • ant apply
  • Managed Agents versions
  • scheduled deployments
  • containers
LEARN
Claude
Anthropic
GitHub Actions
18

LLM Training & Tuning

  • Claude is steered rather than fine-tuned on the first-party API
  • The levers are system prompts, Agent Skills, few-shot examples, structured outputs and the effort setting
  • Measure every change with evals and pin model ids
  • system prompt
  • Agent Skills
  • output_config.effort
  • evals
LEARN
Claude
Anthropic
Python
19

Security, Identity & Cost

  • Cache the stable prefix (tools, system prompt, corpus) so repeats cost a fraction, tune effort per route, and count tokens before large requests
  • Restrict tools and filesystem scope; keep credentials in vaults or host-side tools
  • cache_control
  • output_config.effort
  • count_tokens
  • allowed_tools
  • vault credentials
LEARN
Anthropic
Claude
Python
20

Enterprise Platform & Governance

  • Organise teams into workspaces with RBAC groups, service accounts and spend limits through the Admin API
  • Replace long-lived keys with Workload Identity Federation; pin data location with inference_geo and use zero data retention where eligible
  • Buy through the cloud you already use: Claude on Amazon Bedrock, Google Cloud Vertex AI or Microsoft Foundry
  • Admin API
  • workspaces
  • service accounts
  • spend limits
  • Workload Identity Federation
  • inference_geo
LEARN
AWS IAM
Entra ID
Terraform
Enterprise AI Architecture Matrix • Reference for both tracks

17 architectural layers across 7 agent harnesses

How each harness implements the same layer, from sandboxing and state to MCP, guardrails, the skills.md / memory.md / tools.md context files and model tuning.

Claude SDK column
LayerLangGraphCrewAIAWS BedrockAWS Strands AgentsAzure FoundryClaude SDKGoogle Gemini SDK
Harness & Sandbox
Your runtime

No built-in sandbox; graphs run in LangSmith Deployment or your own containers.

Docker code mode

allow_code_execution with code_execution_mode="safe" runs agent code in Docker.

AgentCore Runtime

Per-session microVM isolation, managed Code Interpreter; action groups run in Lambda.

In-process + AgentCore

The loop runs in your process; AgentCore Runtime adds session isolation.

Agent Service

Hosted runs with a sandboxed Code Interpreter for generated code.

Code execution + containers

Server-side code execution tool; Managed Agents give each session a container.

Code execution + Agent Engine

Built-in code_execution tool and ADK code executors; Agent Engine hosting.

State & Data
Typed state + checkpointers

Reducers merge updates; Postgres, SQLite or Redis checkpointers enable resume and time travel.

Flow state + crew memory

Pydantic Flow state with @persist; short-term, long-term and entity memory.

Session state APIs

sessionAttributes, prompt attributes, session summaries and AgentCore Memory.

agent.state + sessions

JSON agent.state, conversation managers and File or S3 session managers.

Threads

Server-side threads and runs; Standard setup stores threads in your Cosmos DB.

Client-owned messages

History sent each turn, compaction and the memory tool; SDK sessions resume by id.

Scoped session state

session.state with user:, app: and temp: prefixes; database or Vertex AI sessions.

Function Calling
@tool + ToolNode

Docstrings and type hints become the schema; ToolNode runs calls inside the graph.

@tool / BaseTool

Pydantic args_schema validation, the crewai-tools library and per-task tools.

Action groups / toolConfig

OpenAPI or function schemas executed by Lambda; Converse toolSpec schemas.

@tool decorator

Typed Python functions become tools; strands-agents-tools ships ready-made tools.

FunctionTool + OpenAPI

Auto function calling plus Azure Functions, OpenAPI and Logic Apps tools.

Tool Runner + strict tools

JSON-schema tools with strict: true and parallel calls; the Tool Runner drives the loop.

Automatic function calling

Python functions as tools; FunctionDeclarations for manual control.

Edge Deployment
Runs anywhere

Pure Python or JS; pair with local models through Ollama on edge servers.

Local Python

Runs on local hardware with Ollama or llama.cpp models through LiteLLM.

Cloud service

No on-device runtime; use AWS IoT Greengrass with local models at the edge.

Local model providers

OllamaModel and other local providers; the Python agent runs on edge hosts.

Foundry Local

Run models on-device with Foundry Local and ONNX Runtime; Azure IoT Edge.

Cloud API

Models run in the cloud; an edge host can run the Agent SDK and call the API.

Gemini Nano + Gemma

Gemini Nano on Android and Chrome; open Gemma models locally.

Start & Stop
invoke / stream / resume

recursion_limit caps steps; cancel and resume from the last checkpoint.

kickoff / max_iter

kickoff, kickoff_async, kickoff_for_each; max_iter and max_execution_time stop runs.

invoke_agent / endSession

Streaming sessions by sessionId; endSession closes; stopReason on Converse.

agent() / stream_async

Sync, async and streaming calls; Swarm and Graph timeouts and handoff limits.

Runs: create / cancel

Run statuses from queued to completed; runs.cancel and token caps.

stream + stop_reason

end_turn, tool_use, pause_turn and refusal; ClaudeSDKClient.interrupt().

run_async events

Event stream to a final response; max_llm_calls; escalate exits loops.

Testing & Eval
LangSmith evals

Unit-test nodes; datasets, LLM judges and trajectory evals.

crewai test

Scores each task over N runs; crewai train adds human feedback.

Bedrock Evaluations

LLM-as-judge jobs for models, Knowledge Bases and agents; test-alias traces.

pytest + metrics

Test tools as functions and assert on tool metrics; LLM-judge eval sets.

azure-ai-evaluation

Groundedness, intent, tool-call accuracy and safety evaluators; red teaming.

Evals + Batches

Code and LLM graders; large eval sets through the Batches API.

adk eval

Tool-trajectory and response-match scores; AgentEvaluator in pytest.

Auditing & Tracing
LangSmith traces

Node-level trace trees; checkpoint history as a replayable audit log.

Event listeners

Event-bus listeners, log files, and Langfuse or AgentOps integrations.

Invocation logs + CloudTrail

Prompt and response logs to CloudWatch or S3; API audit in CloudTrail.

OpenTelemetry built in

Spans for every cycle, model and tool call to X-Ray, CloudWatch or Langfuse.

Application Insights

OpenTelemetry tracing of runs and tool calls; Azure Monitor.

Usage logs + hooks

Request ids and token usage; Agent SDK hooks log tool calls.

Cloud Trace

ADK spans; events record author, calls and state deltas.

Orchestration
Supervisor / swarm graphs

Subgraphs, Command handoffs, Send fan-out, prebuilt supervisor and swarm.

Crews + Flows

Sequential or hierarchical crews; Flows chain crews with routers.

Multi-agent collaboration

Supervisor and collaborator agents; Flows and Step Functions.

Swarm, Graph, agents-as-tools

Model-driven or explicit multi-agent patterns; A2A protocol.

Connected agents

Agents as tools; Agent Framework sequential, concurrent, handoff and group chat.

Subagents

Agent SDK subagents with isolated context; Managed Agents multi-agent workflows.

Workflow agents

Sequential, Parallel and Loop agents; sub-agent transfer; AgentTool; A2A.

Guardrails
Guard nodes + middleware

Validator nodes route to END; PII and call-limit middleware.

Task guardrails

Function or LLM guardrails retry failing outputs with feedback.

Bedrock Guardrails

Content filters, denied topics, PII masking, grounding and Automated Reasoning checks.

Guardrails + hooks

Bedrock Guardrails on the model; hooks block or cancel tool calls.

Content Safety

Content filters, Prompt Shields, groundedness and protected-material detection.

Hooks + permissions

PreToolUse hooks deny calls; tool allow and deny lists; refusal stop reason.

Callbacks + Model Armor

before_model and before_tool callbacks; safety settings; Model Armor.

RAG Pipeline
Agentic RAG graphs

Retrieve, grade and rewrite loops over any LangChain vector store.

Knowledge + RAG tools

Knowledge sources per agent or crew; PDF, web and vector search tools.

Knowledge Bases

Managed ingestion, chunking and vector stores with filters and citations.

retrieve tool

Queries Bedrock Knowledge Bases; custom vector tools for other stores.

AI Search + File Search

Hybrid vector and semantic search, managed vector stores, Bing grounding.

Citations

Bring your own retrieval; document blocks return cited spans.

File Search / RAG Engine

Managed File Search stores; Vertex AI RAG Engine and Search grounding.

MCP Integration
MCP adapters

MultiServerMCPClient loads stdio and HTTP servers as LangChain tools.

MCPServerAdapter

Stdio, SSE and streamable-HTTP servers exposed as CrewAI tools.

AgentCore Gateway

Turns Lambda and OpenAPI targets into a secured MCP endpoint.

MCPClient

Native MCP client for stdio, SSE and streamable HTTP.

McpTool

Remote MCP servers with tool allow-lists and approval modes.

MCP connector

The API calls remote MCP servers directly; the Agent SDK runs local ones.

MCPToolset

Connects ADK agents to MCP servers with tool filters.

MLOps / LLMOps
LangSmith Deployment

langgraph.json, container builds, assistant versions and eval gates.

CrewAI AMP

crewai deploy exposes crews as APIs; versioned YAML configs.

Versions + aliases

Immutable agent versions, alias rollouts, CloudFormation or CDK.

AgentCore / Lambda

BedrockAgentCoreApp entrypoint; Lambda, Fargate or EKS.

GenAIOps

Evals in CI, Bicep or Terraform deploys, continuous evaluation.

Pinned models + versions

Eval-gated model changes; Managed Agents versions and schedules.

Agent Engine / Cloud Run

adk deploy to Vertex AI Agent Engine or Cloud Run.

Human-in-the-Loop
interrupt()

Pause any node; resume with Command(resume=...) to approve or edit.

human_input=True

Tasks pause for reviewer feedback; Flow routers queue risky cases.

Return of control

Hands planned actions back to the app; per-function user confirmation.

Interrupts

BeforeToolCall hooks pause for approval; handoff_to_user tool.

requires_action

Runs pause for tool outputs or MCP approvals before continuing.

can_use_tool

Approve or deny each tool call; permission modes set defaults.

Tool confirmation

require_confirmation on tools; long-running tools for async approvals.

skills.md
Prompts per node

Load skill files into node prompts and route to them with conditional edges.

agents.yaml

Role, goal and backstory per agent carry each skill description.

Agent instructions

Instructions plus prompt-override templates per orchestration step.

system_prompt

Load skill files into the system prompt or specialist agents-as-tools.

Agent instructions

Instructions per agent; connected agents for separate skills.

Agent Skills (SKILL.md)

Skill folders with SKILL.md load on demand in the API and Agent SDK.

Instructions + sub-agents

Skill text in instructions; sub-agent descriptions drive routing.

memory.md
Store namespaces

Memory notes in the long-term Store, written by a memory node.

Knowledge + external memory

Text knowledge sources or Mem0-backed external memory.

AgentCore Memory

Session summaries and long-term memory strategies.

Sessions + mem0 tool

Session managers persist state; the mem0_memory tool keeps long-term notes.

Threads + files

Thread history plus a File Search store holding memory notes.

CLAUDE.md + memory tool

The Agent SDK loads CLAUDE.md; the memory tool reads and writes memory files.

Memory Bank

MemoryService and load_memory recall long-term facts.

tools.md
Tool docstrings

Generate tools.md from @tool names, docstrings and Pydantic args.

BaseTool schemas

name, description and args_schema document each tool.

OpenAPI schemas

Action-group OpenAPI or function-detail definitions.

@tool docstrings

Docstrings become tool specs; tools can load from a directory.

OpenAPI specs

Function definitions and OpenAPI tool specs per agent.

JSON-schema tools

Name, description and input_schema; MCP servers describe their own tools.

FunctionDeclarations

Function docstrings or explicit declarations describe each tool.

LLM Training / Tuning
Model-agnostic

Use LangSmith traces as datasets; fine-tune in your model platform.

crewai train

Human feedback improves agent guidance; tuned models via LiteLLM.

Custom models

Fine-tuning, continued pre-training, distillation and model import.

Bedrock or SageMaker models

Point the model provider at a tuned Bedrock or SageMaker model.

Fine-tuning + distillation

Supervised, preference and reinforcement fine-tuning for supported models.

Prompting over tuning

Steer with prompts, Skills, examples and effort; no first-party fine-tuning.

Vertex AI tuning

Supervised and preference tuning for Gemini; LoRA for Gemma.