Skip to main content
Loading navigation
Back to prompt library

Construct Claude Agents SDK Extended Thinking Agent

Linked challenge: Vaccine Safety Literature Synthesis Agent with Claude Agents SDK

Prompt source

implementation9 lines3 sectionsNo variables0 checklist items
import anthropic

# Initialize Claude client with tool use and extended thinking for deep literature synthesis
client = anthropic.Anthropic()

response = client.messages.create(
    model="claude-3-7-sonnet-20250219",
    max_tokens=4000,
    thinking={"type": "enabled", "budget_tokens": 2000},
    messages=[{"role": "user", "content": "Analyze epidemiological evidence..."}]
)