Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

1,296 pages for type.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

citations Claude Developer Platform · in the page build-with-claude/citations …h cURL curl https://api.anthropic.com/v1/messages \ -H "content-type: application/json" \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -d '{ "model… claude-in-amazon-bedrock Claude Developer Platform · in the page build-with-claude/claude-in-amazon-bedrock …imum, least preferred): <Steps> <Step title="Admin: restrict token types"> Block long-term keys by attaching a policy that denies `bedrock:CallWithBearerToken` unless the `bedrock:BearerTokenTy… claude-in-microsoft-foundry Claude Developer Platform · in the page build-with-claude/claude-in-microsoft-foundry …is available in Global Standard and US Data Zone Standard deployment types in Foundry resources, billed in Claude Consumption Units through the Azure Marketplace. Visit [Claude in Microsoft Foundry p… anthropic-managed Claude Developer Platform · in the page build-with-claude/claude-models-on-google-cloud/anthropic-managed …sent to that address. 4. Fill in the organization's name, entity type, country, and intended use. 5. Accept Anthropic's Commercial Terms of Service and Usage Policy. The contact address… google-managed Claude Developer Platform · in the page build-with-claude/claude-models-on-google-cloud/google-managed …pip install -U "anthropic[vertex]" ``` </Tab> <Tab title="TypeScript"> ```bash npm install @anthropic-ai/vertex-sdk ``` </Tab> <Tab title="C#"> ```bash dotnet add… overview Claude Developer Platform · in the page build-with-claude/claude-models-on-google-cloud/overview …naged-iam-permissions"> Look up permissions, roles, and audit log types. </Card> </CardGroup> claude-on-amazon-bedrock-legacy Claude Developer Platform · in the page build-with-claude/claude-on-amazon-bedrock-legacy …pip install -U "anthropic[bedrock]" ``` </Tab> <Tab title="TypeScript"> ```bash npm install @anthropic-ai/bedrock-sdk ``` </Tab> <Tab title="C#"> ```bash dotnet add… claude-platform-on-aws Claude Developer Platform · in the page build-with-claude/claude-platform-on-aws …| | **SDK client** | `AnthropicAWS` (typescript: `AnthropicAws`; csharp: `AnthropicAwsClient`; go: `anthropicaws.NewClient()`; java: `AwsBackend`; php: `Anthropic\Aws\… sent_count = len(messages sent in the compaction request) Claude Developer Platform · in the page build-with-claude/compaction …6-01" \ -H "anthropic-beta: compact-2026-01-12" \ -H "content-type: application/json" \ -d '{ "model": "claude-opus-5", "max_tokens": 4096, "messages": [ {… compaction-background Claude Developer Platform · in the page build-with-claude/compaction-background …mport Future, ThreadPoolExecutor import anthropic from anthropic.types.beta import BetaMessage, BetaMessageParam client = anthropic.Anthropic() executor = ThreadPoolExecutor(max_workers=1)… compaction-keep-recent-turns Claude Developer Platform · in the page build-with-claude/compaction-keep-recent-turns …unit for each ingredient in a recipe." } ], "compaction": { "type": "summarize" } } ``` The next request sends the returned block first, then the kept turn exactly as it was, then the new `u… compaction-on-demand Claude Developer Platform · in the page build-with-claude/compaction-on-demand …ne request. Send the conversation as it stands with `"compaction": {"type": "summarize"}`. The API summarizes every message in the request once, generates no reply after it, and returns the block alo… compaction-thinking-blocks Claude Developer Platform · in the page build-with-claude/compaction-thinking-blocks …eld: <CodeGroup exclude="shell"> ```python Python from anthropic.types.beta import BetaMessageParam, BetaThinkingConfigParam client = anthropic.Anthropic() # Claude Fable 5.1 is the first m… compaction-threshold Claude Developer Platform · in the page build-with-claude/compaction-threshold …6-01" \ -H "anthropic-beta: compact-2026-01-12" \ -H "content-type: application/json" \ -d '{ "model": "claude-opus-5-5", "max_tokens": 4096, "messages": [ {… context-editing Claude Developer Platform · in the page build-with-claude/context-editing …| Available in [TypeScript and Ruby SDKs](https://platform.claude.com/docs/en/cli-sdks-libraries/overview) when using [`tool_runner`](https://plat… effort Claude Developer Platform · in the page build-with-claude/effort …C_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \ -d '{ "model": "claude-opus-5-5", "max_tokens": 4096, "messages": [{ "role… This will automatically use the environment variable VOYAGE_API_KEY. Claude Developer Platform · in the page build-with-claude/embeddings …s described in the following sections. Voyage AI also has an official TypeScript client. To use it with a model API key from Atlas, set its `environment` option to `https://ai.mongodb.com/v1`, as desc… extended-thinking Claude Developer Platform · in the page build-with-claude/extended-thinking …nd-data-retention). </Note> <Warning> Extended thinking (`thinking.type: "enabled"` with `budget_tokens`) is deprecated on the Claude 4.6 models (requests using it still succeed). Claude 4.7 and la… fallback-credit Claude Developer Platform · in the page build-with-claude/fallback-credit …n response.content] match echoed: case [*_, {"type": "text"} as final_block]: final_block["text"] = final_block["text"].rstrip() attempt = exact_bod… fast-mode Claude Developer Platform · in the page build-with-claude/fast-mode …C_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \ -d '{ "model": "claude-opus-5-5", "max_tokens": 4096, "speed": "fast", "mess… files Claude Developer Platform · in the page build-with-claude/files …de.com/docs/en/api/files/upload), in addition to this guide. ## File type support Referencing a `file_id` in a Messages request is supported on all models that support the given file type. [Images](… handling-stop-reasons Claude Developer Platform · in the page build-with-claude/handling-stop-reasons …generation. ```text Example response wrap { "id": "msg_01234", "type": "message", "role": "assistant", "content": [ { "type": "text", "text": "Here's the answer to your quest… mid-conversation-effort-example Claude Developer Platform · in the page build-with-claude/mid-conversation-effort-example …viron.get("ORCH_JOURNAL") or "orchestration_journal.json" ``` ```typescript TypeScript import { exec } from "node:child_process"; import { createHash } from "node:crypto"; import { mkdtempD… mid-conversation-system-messages Claude Developer Platform · in the page build-with-claude/mid-conversation-system-messages …h block's `tool` field references a tool rather than defining one: `{"type": "tool_reference", "name": "..."}` names a tool declared in the request's `tools` array, and [MCP connector](https://platfor… multilingual-support Claude Developer Platform · in the page build-with-claude/multilingual-support …h cURL curl https://api.anthropic.com/v1/messages \ -H "content-type: application/json" \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -d '{ "model… pdf-support Claude Developer Platform · in the page build-with-claude/pdf-support …d directly in document blocks: upload them to the Files API with MIME type `text/plain` and reference them by `file_id`. Binary formats such as .xlsx or .docx are not supported in document blocks and… preserved-thinking Claude Developer Platform · in the page build-with-claude/preserved-thinking …mismatch"`: ```text wrap { "input_transformations": [ { "type": "thinking_dropped", "path": "messages.3.content.0", "reason": "model_binding_mismatch" } ] } ``` Without… Request 2 caches its request content (not the response) Claude Developer Platform · in the page build-with-claude/prompt-caching …h cURL curl https://api.anthropic.com/v1/messages \ -H "content-type: application/json" \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -d '{ "model… claude-prompting-best-practices Claude Developer Platform · in the page build-with-claude/prompt-engineering/claude-prompting-best-practices …s instructions, context, examples, and variable inputs. Wrapping each type of content in its own tag (for example, `<instructions>`, `<context>`, `<input>`) reduces misinterpretation. Best practices:… prompting-claude-fable-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-fable-5 …actly as written before the task finishes.", "input_schema": { "type": "object", "properties": { "message": { "type": "string", "description": "The content to display t… Delivering work Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-fable-5-1 …clude="shell"> ```python Python import anthropic from anthropic.types.beta import ( BetaMessageParam, BetaToolParam, BetaToolResultBlockParam, ) client = anthropic.Anthrop… prompting-claude-haiku-5-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-haiku-5-5 …op it from thinking. You can also turn thinking off with `thinking: {"type": "disabled"}`. This works at `low`, `medium`, and `high` only. At `xhigh` and `max`, the request returns a 400 error. * At `… prompting-claude-opus-4-8 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-opus-4-8 …laude Opus 4.8, thinking is off unless you explicitly set `thinking: {type: "adaptive"}`. The triggering behavior for [adaptive thinking](https://platform.claude.com/docs/en/build-with-claude/thinking… prompting-claude-opus-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-opus-5 …RENT_SUBAGENTS` environment variables and the SDK's `max_budget_usd` (typescript: `maxBudgetUsd`) option. Older versions of Claude Code don't have them, so update Claude Code and any pinned SDK before… prompting-claude-opus-5-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-opus-5-5 …pts written for thinking disabled Claude Opus 5 accepts `thinking: {"type": "disabled"}` at `high` effort or below; Claude Opus 5.5 doesn't, and the [migration guide](https://platform.claude.com/docs… prompting-claude-sonnet-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-sonnet-5 …ran without thinking. To turn thinking off entirely, pass `thinking: {type: "disabled"}`. Because `max_tokens` is a hard limit on total output (thinking plus response text), revisit it for workloads t… prompting-claude-sonnet-5-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-sonnet-5-5 …To run Claude Sonnet 5.5 without up-front thinking, send `thinking: {"type": "between_tools"}`. It's the lowest thinking setting on this model, and it's accepted at `high` effort or below. If your int… refusals-and-fallback Claude Developer Platform · in the page build-with-claude/refusals-and-fallback …H "anthropic-beta: server-side-fallback-2026-07-01" \ -H "content-type: application/json" \ -d '{ "model": "claude-fable-5", "max_tokens": 1024, "fallbacks": "default",… search-results Claude Developer Platform · in the page build-with-claude/search-results …ult schema Search results use the following structure: ```json { "type": "search_result", "source": "https://example.com/article", // Required: Source URL or identifier "title": "Article Title… skills-guide Claude Developer Platform · in the page build-with-claude/skills-guide …. You specify Skills in the `container` parameter with a `skill_id`, `type`, and optional `version`, and they run in the code execution environment. You can use Skills from two sources: | Aspect… streaming Claude Developer Platform · in the page build-with-claude/streaming …[Python SDK](https://github.com/anthropics/anthropic-sdk-python) and [TypeScript SDK](https://github.com/anthropics/anthropic-sdk-typescript) offer multiple ways of streaming. The [PHP SDK](https://gi… structured-outputs Claude Developer Platform · in the page build-with-claude/structured-outputs …rom invalid JSON syntax * Missing required fields * Inconsistent data types * Schema violations requiring error handling and retries Structured outputs guarantee schema-compliant responses through co… task-budgets Claude Developer Platform · in the page build-with-claude/task-budgets …\ -H "anthropic-beta: task-budgets-2026-03-13" \ -H "content-type: application/json" \ -d '{ "model": "claude-opus-5-5", "max_tokens": 128000, "stream": true, "mes… thinking Claude Developer Platform · in the page build-with-claude/thinking …hinking#thinking-encryption)): ```text { "content": [ { "type": "thinking", "thinking": "Let me break this down. The question has two parts, so I'll start with the simpler one and u… thinking-steering-and-cost Claude Developer Platform · in the page build-with-claude/thinking-steering-and-cost …ser", "content": [ { "type": "text", "text": LARGE_TEXT, "cache_control": {"type": "ephemeral"},… thinking-tool-workflows Claude Developer Platform · in the page build-with-claude/thinking-tool-workflows …e tool use return an error with manual extended thinking (`thinking: {type: "enabled"}`). Adaptive thinking supports forced tool use, except on Claude Opus 5.5, Claude Sonnet 5.5, Claude Fable 5.1, an… thinking-troubleshooting Claude Developer Platform · in the page build-with-claude/thinking-troubleshooting …st thinking configuration errors are a mismatch between the `thinking.type` value in the request and what the model supports. On most models, thinking runs as `thinking: {type: "adaptive"}`, and many… token-counting Claude Developer Platform · in the page build-with-claude/token-counting …unt_tokens \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "content-type: application/json" \ -H "anthropic-version: 2023-06-01" \ -d '{ "model": "claude-opus-5-5", "system": "Yo… vision Claude Developer Platform · in the page build-with-claude/vision …images to Claude as `image` content blocks using one of three source types: 1. A base64-encoded image embedded in the request body 2. A URL reference to an image hosted online 3. A `file_id` returne… vision-coordinates Claude Developer Platform · in the page build-with-claude/vision-coordinates …ample Pillow: # image.resize(resized_size(*image.size)) ``` ```typescript TypeScript /** Visual tokens consumed by an image: one token for each 28x28 pixel patch. */ function countImageToke…
Feedback