529 pages for wait.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
cache-diagnostics
Claude Developer Platform · in the page
build-with-claude/cache-diagnostics
…>"; // Turn 1: opt in with previous_message_id: null const r1 = await client.beta.messages.create({ model: "claude-opus-5-5", max_tokens: 1024, cache_control: { type: "ephemeral" },…
citations
Claude Developer Platform · in the page
build-with-claude/citations
…ipt TypeScript const client = new Anthropic(); const response = await client.messages.create({ model: "claude-opus-5-5", max_tokens: 1024, messages: [ { role: "user",…
claude-in-amazon-bedrock
Claude Developer Platform · in the page
build-with-claude/claude-in-amazon-bedrock
…ckMantle({ awsRegion: "us-east-1" }); const message = await client.messages.create({ model: "anthropic.claude-opus-5-5", max_tokens: 1024, messages: [{ role: "user", c…
claude-in-microsoft-foundry
Claude Developer Platform · in the page
build-with-claude/claude-in-microsoft-foundry
…Anthropic, version 2 for Hosted on Azure). 6. Select **Deploy** and wait for provisioning to complete. 7. Once deployed, select **Build** in the upper-right navigation, then **Models** in the left…
claude-on-amazon-bedrock-legacy
Claude Developer Platform · in the page
build-with-claude/claude-on-amazon-bedrock-legacy
…dationModelsCommand({ byProvider: "anthropic" }); const response = await client.send(command); if (response.modelSummaries) { for (const summary of response.modelSummaries) { console.lo…
claude-on-vertex-ai
Claude Developer Platform · in the page
build-with-claude/claude-on-vertex-ai
…AnthropicVertex({ projectId, region }); const result = await client.messages.create({ model: "claude-opus-5-5", max_tokens: 100, messages: [ { role: "user",…
claude-platform-on-aws
Claude Developer Platform · in the page
build-with-claude/claude-platform-on-aws
…rovider = getTokenProvider({ region: "us-west-2" }); const token = await tokenProvider(); const client = new AnthropicAws({ apiKey: token, awsRegion: "us-west-2" }); ``` ```java Java impor…
sent_count = len(messages sent in the compaction request)
Claude Developer Platform · in the page
build-with-claude/compaction
…user", content: "Help me build a website" } ]; const response = await client.beta.messages.create({ betas: ["compact-2026-01-12"], model: "claude-opus-5", max_tokens: 4096, messag…
compaction-background
Claude Developer Platform · in the page
build-with-claude/compaction-background
…ns while the conversation continues on its full history, and the swap waits until the block arrives. [Continue from the summary](https://platform.claude.com/docs/en/build-with-claude/compaction-on-dem…
compaction-keep-recent-turns
Claude Developer Platform · in the page
build-with-claude/compaction-keep-recent-turns
…tory.push({ role: "user", content: question }); const response = await client.beta.messages.create({ model: "claude-opus-5-5", max_tokens: 8192, system: systemPrompt, betas…
compaction-on-demand
Claude Developer Platform · in the page
build-with-claude/compaction-on-demand
…ood. Now suggest field names for Recipe." } ]; const response = await client.beta.messages.create({ model: "claude-opus-5-5", // max_tokens caps the whole call, including any thinking, so…
compaction-thinking-blocks
Claude Developer Platform · in the page
build-with-claude/compaction-thinking-blocks
…e the main entities in the app's data model?" } ]; const first = await client.beta.messages.create({ model, max_tokens: 8192, system: systemPrompt, betas, thinking, message…
compaction-threshold
Claude Developer Platform · in the page
build-with-claude/compaction-threshold
…user", content: "Help me build a website" } ]; const response = await client.beta.messages.create({ betas: ["compact-2026-01-12"], model: "claude-opus-5-5", max_tokens: 4096, mess…
context-editing
Claude Developer Platform · in the page
build-with-claude/context-editing
…apiKey: process.env.ANTHROPIC_API_KEY }); const response = await anthropic.beta.messages.create({ model: "claude-opus-5-5", max_tokens: 4096, messages: [ { role: "u…
effort
Claude Developer Platform · in the page
build-with-claude/effort
…ipt TypeScript const client = new Anthropic(); const response = await client.messages.create({ model: "claude-opus-5-5", max_tokens: 4096, messages: [ { role: "user",…
extended-thinking
Claude Developer Platform · in the page
build-with-claude/extended-thinking
…ipt TypeScript const client = new Anthropic(); const response = await client.messages.create({ model: "claude-sonnet-4-6", max_tokens: 16000, thinking: { type: "enabled",…
fallback-credit
Claude Developer Platform · in the page
build-with-claude/fallback-credit
…}], betas: ["fallback-credit-2026-07-01"] }; let response = await client.beta.messages.create(request); if ( response.stop_reason === "refusal" && response.stop_details?.type === "…
fast-mode
Claude Developer Platform · in the page
build-with-claude/fast-mode
…ipt TypeScript const client = new Anthropic(); const response = await client.messages.create({ model: "claude-opus-5-5", max_tokens: 4096, speed: "fast", messages: [ {…
files
Claude Developer Platform · in the page
build-with-claude/files
…print(file_id) ``` ```typescript TypeScript const uploaded = await client.files.upload({ file: await toFile(fs.createReadStream("/path/to/document.pdf"), undefined, { type: "applicat…
handling-stop-reasons
Claude Developer Platform · in the page
build-with-claude/handling-stop-reasons
…ipt TypeScript const client = new Anthropic(); const response = await client.messages.create({ model: "claude-opus-5-5", max_tokens: 1024, messages: [{ role: "user", content: "Hello!"…
mid-conversation-effort-example
Claude Developer Platform · in the page
build-with-claude/mid-conversation-effort-example
…hrowaway fixture directory instead, removed when the program ends. await using fixtureDir = DOC_TEST_MODE ? await mkdtempDisposable(join(tmpdir(), "orchestration-")) : null; const WORK_DIR…
mid-conversation-system-messages
Claude Developer Platform · in the page
build-with-claude/mid-conversation-system-messages
…ipt TypeScript const client = new Anthropic(); const response = await client.beta.messages.create({ model: "claude-opus-5-5", max_tokens: 1024, betas: ["inline-tools-2026-09-15"],…
multilingual-support
Claude Developer Platform · in the page
build-with-claude/multilingual-support
…ript TypeScript const client = new Anthropic(); const message = await client.messages.create({ model: "claude-opus-5-5", max_tokens: 1024, system: "Always respond in French, regardles…
overview
Claude Developer Platform · in the page
build-with-claude/overview
…vailability may be limited, including through sign-up requirements or waitlists, and may not be publicly announced.<br /><br />Features may change significantly or be discontinued based on feedback. N…
pdf-support
Claude Developer Platform · in the page
build-with-claude/pdf-support
…TypeScript const anthropic = new Anthropic(); const response = await anthropic.messages.create({ model: "claude-opus-5-5", max_tokens: 1024, messages: [ { role: "user",…
preserved-thinking
Claude Developer Platform · in the page
build-with-claude/preserved-thinking
…ipt TypeScript const client = new Anthropic(); const response = await client.beta.messages.create({ model: "claude-fable-5-1", max_tokens: 16000, thinking: { type: "adaptive",…
Request 2 caches its request content (not the response)
Claude Developer Platform · in the page
build-with-claude/prompt-caching
…ipt TypeScript const client = new Anthropic(); const response = await client.messages.create({ model: "claude-opus-5-5", max_tokens: 1024, cache_control: { type: "ephemeral" }, sy…
claude-prompting-best-practices
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/claude-prompting-best-practices
…ript TypeScript const client = new Anthropic(); const message = await client.messages.create({ model: "claude-opus-5-5", max_tokens: 1024, system: "You are a helpful coding assistant…
Delivering work
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/prompting-claude-fable-5-1
…Anthropic.Beta.Messages.BetaMessage; while (true) { response = await client.beta.messages.create({ model: "claude-fable-5-1", max_tokens: 16000, betas: ["mid-conversation-syste…
prompting-claude-opus-5-5
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/prompting-claude-opus-5-5
…a background command or a subagent, don't treat the task as done yet: wait for it to finish and return its output to the model as the next user message. A system prompt addition can also make these e…
prompting-claude-sonnet-5-5
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/prompting-claude-sonnet-5-5
…ork, start at `medium` or `low`, because higher effort means a longer wait before the reply starts. Raise effort if quality needs it. Lower effort also changes how the model completes agentic work. A…
refusals-and-fallback
Claude Developer Platform · in the page
build-with-claude/refusals-and-fallback
…ipt TypeScript const client = new Anthropic(); const response = await client.beta.messages.create({ model: "claude-fable-5", max_tokens: 1024, messages: [{ role: "user", content: "Hel…
search-results
Claude Developer Platform · in the page
build-with-claude/search-results
…ngs?" } ]; // Create a message with the tool const response = await client.messages.create({ model: "claude-opus-5", max_tokens: 1024, tools: [knowledgeBaseTool], tool_choice: {…
skills-guide
Claude Developer Platform · in the page
build-with-claude/skills-guide
…ipt TypeScript const client = new Anthropic(); const response = await client.messages.create({ model: "claude-opus-5-5", max_tokens: 4096, container: { skills: [ {…
streaming
Claude Developer Platform · in the page
build-with-claude/streaming
…``` ```typescript TypeScript const client = new Anthropic(); await client.messages .stream({ messages: [{ role: "user", content: "Hello" }], model: "claude-opus-5-5", max…
structured-outputs
Claude Developer Platform · in the page
build-with-claude/structured-outputs
…) }); const client = new Anthropic(); const response = await client.messages.parse({ model: "claude-opus-5-5", max_tokens: 1024, messages: [ { role: "…
task-budgets
Claude Developer Platform · in the page
build-with-claude/task-budgets
…es multiple tool calls and decisions before finalizing its output to await the next human response. Use them when: * You want Claude to self-regulate token spend on long-horizon tasks. * You have a p…
thinking
Claude Developer Platform · in the page
build-with-claude/thinking
…ipt TypeScript const client = new Anthropic(); const response = await client.messages.create({ model: "claude-opus-5-5", max_tokens: 16000, thinking: { type: "adaptive", d…
thinking-steering-and-cost
Claude Developer Platform · in the page
build-with-claude/thinking-steering-and-cost
…icleContent(url: string): Promise<string> { const response = await fetch(url); const text = await response.text(); const lines = text.split("\n").map((line) => line.trim());…
thinking-tool-workflows
Claude Developer Platform · in the page
build-with-claude/thinking-tool-workflows
…laude responds with thinking and tool request const response = await client.messages.create({ model: "claude-opus-5-5", max_tokens: 16000, thinking: { type: "ad…
token-counting
Claude Developer Platform · in the page
build-with-claude/token-counting
…ipt TypeScript const client = new Anthropic(); const response = await client.messages.countTokens({ model: "claude-opus-5-5", system: "You are a scientist", messages: [ {…
vision
Claude Developer Platform · in the page
build-with-claude/vision
…t TypeScript const anthropic = new Anthropic(); const message = await anthropic.messages.create({ model: "claude-opus-5-5", max_tokens: 1024, messages: [ { role: "user",…
vision-coordinates
Claude Developer Platform · in the page
build-with-claude/vision-coordinates
…To apply the resize, use your image library, for example sharp: // await sharp(input).resize(width, height).toBuffer() ``` ```csharp C# // Visual tokens consumed by an image: one token per 28…
working-with-messages
Claude Developer Platform · in the page
build-with-claude/working-with-messages
…t TypeScript const anthropic = new Anthropic(); const message = await anthropic.messages.create({ model: "claude-opus-5-5", max_tokens: 1024, messages: [{ role: "user", content: "Hell…
apply
Claude Developer Platform · in the page
cli-sdks-libraries/cli/apply
…rectory. In an interactive terminal, `ant apply` prints the plan and waits for your approval: ```text Output wrap First apply ./claude-lock.json does not exist yet and will be created Resources wi…
sessions-connect
Claude Developer Platform · in the page
cli-sdks-libraries/cli/sessions-connect
…a message, interrupt the agent, or allow or deny a tool call that is waiting for approval. With `--web`, it opens the session in the Claude Console's session viewer in your browser instead. The comm…
apple-foundation-models
Claude Developer Platform · in the page
cli-sdks-libraries/libraries/apple-foundation-models
…let session = LanguageModelSession(model: model) let response = try await session.respond(to: "Plan a 4-day trip to Buenos Aires.") print(response.content) ``` The initializer also accepts `baseURL`…
openai-sdk
Claude Developer Platform · in the page
cli-sdks-libraries/libraries/openai-sdk
….anthropic.com/v1/" // Claude API endpoint }); const response = await openai.chat.completions.create({ messages: [ { role: "system", content: "You are a helpful assistant." }, { r…
middleware
Claude Developer Platform · in the page
cli-sdks-libraries/middleware
…// Forward the request to the rest of the chain const response = await next(request); // After the request ctx.logger.debug("<-", response.status, request.url); return response; };…
csharp
Claude Developer Platform · in the page
cli-sdks-libraries/sdks/csharp
…ello, Claude" }], Model = Model.ClaudeOpus5_5, }; var message = await client.Messages.Create(parameters); foreach (var block in message.Content) { if (block.TryPickText(out var textBlock))…