Follow Discord
Sweep 04 Dec 2026 · 17:52Z Build v2.1.337 554 read Stable v2.1.332 Latest v2.1.337 Next v2.1.337 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

518 pages for cases.

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

Archive Workspace Claude Developer Platform · in the page api/beta/organization/workspaces/archive …ageMember` Where copies of the Workspace's transcripts and its cases (Anthropic's safety findings about those transcripts) go. `external` sends them to the External Storage that `external_stora… Create Workspace Claude Developer Platform · in the page api/beta/organization/workspaces/create …MemberParam` Where copies of the Workspace's transcripts and its cases (Anthropic's safety findings about those transcripts) go. `external` sends them, once the attach takes effect, to the Extern… List Workspaces Claude Developer Platform · in the page api/beta/organization/workspaces/list …ageMember` Where copies of the Workspace's transcripts and its cases (Anthropic's safety findings about those transcripts) go. `external` sends them to the External Storage that `external_stora… Get Workspace Claude Developer Platform · in the page api/beta/organization/workspaces/retrieve …ageMember` Where copies of the Workspace's transcripts and its cases (Anthropic's safety findings about those transcripts) go. `external` sends them to the External Storage that `external_stora… Update Workspace Claude Developer Platform · in the page api/beta/organization/workspaces/update …MemberParam` Where copies of the Workspace's transcripts and its cases (Anthropic's safety findings about those transcripts) go once the change takes effect. `external` sends them to the External… Compliance API Claude Developer Platform · in the page api/compliance …member of the organization replied to one of the organization's open cases in the Claude directory. - `"claude_directory_domain_added"` An organization added a domain name it intends to prove… Activities Claude Developer Platform · in the page api/compliance/activities …member of the organization replied to one of the organization's open cases in the Claude directory. - `"claude_directory_domain_added"` An organization added a domain name it intends to prove… Query compliance activities Claude Developer Platform · in the page api/compliance/activities/list …member of the organization replied to one of the organization's open cases in the Claude directory. - `"claude_directory_domain_added"` An organization added a domain name it intends to prove… errors Claude Developer Platform · in the page api/errors …om 0.5 to 8 seconds. The Go SDK retries some create methods in fewer cases. See [Retries for create methods in the Go SDK](https://platform.claude.com/docs/en/cli-sdks-libraries/sdks/go#retries-for-c… Before Claude Developer Platform · in the page api/migration-2026-10-21 …n) .build(); ``` </Tab> <Tab title="PHP"> **Enum cases you pass are read back as their values.** `with()` and setters such as `withAllowedCallers()` still take an enum case or its… spans Claude Developer Platform · in the page api/opentelemetry/spans …A tool span each time the API runs a tool in the turn, except in the [cases listed in the tool span section](https://platform.claude.com/docs/en/api/opentelemetry/spans#anthropic-tool-use-anthropic-mc… service-tiers Claude Developer Platform · in the page api/service-tiers …**Standard:** Default tier for both piloting and scaling everyday use cases * **Batch:** Best for asynchronous workflows that can wait or benefit from being outside your normal capacity ## Standard t… Message Batches API Claude Developer Platform · in the page build-with-claude/batch-processing …sults, such as: * Large-scale evaluations: Process thousands of test cases efficiently. * Content moderation: Analyze large volumes of user-generated content asynchronously. * Data analysis: Generate… cache-diagnostics Claude Developer Platform · in the page build-with-claude/cache-diagnostics …divergence point; `previous_message_not_found` and `unavailable` are cases where no comparison was produced. | When `cache_miss_reason` is non-null, it looks like this: ```json { "id": "msg_01Xyz… compaction-threshold Claude Developer Platform · in the page build-with-claude/compaction-threshold …s the policy category, if there is one. Continue the same way in both cases: look for the `compaction` block instead of testing `stop_reason`, as the [example that preserves recent messages](https://p… context-editing Claude Developer Platform · in the page build-with-claude/context-editing …a Microsoft Foundry: beta --- ## Overview <Note> For most use cases, [server-side compaction](https://platform.claude.com/docs/en/build-with-claude/compaction) is the primary strategy for mana… effort Claude Developer Platform · in the page build-with-claude/effort …s to Claude Opus 4.8. **Start with `xhigh` for coding and agentic use cases**, use `high` for most other intelligence-sensitive workloads, and step down to `medium` or `low` only when you’ve measured… This will automatically use the environment variable VOYAGE_API_KEY. Claude Developer Platform · in the page build-with-claude/embeddings …I use the input_type parameter?"> For all retrieval tasks and use cases (for example, RAG), use the `input_type` parameter to specify whether the input text is a query or document. Do not omit `in… fallback-credit Claude Developer Platform · in the page build-with-claude/fallback-credit …ladder. </Accordion> ## Reference The following sections cover edge cases and the complete redemption rules. Most integrations do not need them. <Accordion title="Fields that must match the refused… handling-stop-reasons Claude Developer Platform · in the page build-with-claude/handling-stop-reasons …f tool results. The follow-up user message itself is the same in both cases; with programmatic tool calling, also pass back the `id` from the response’s `container` field, as that page shows. </Note>… mid-conversation-system-messages Claude Developer Platform · in the page build-with-claude/mid-conversation-system-messages …/build-with-claude/mid-conversation-effort-example). In all of these cases you could put the instruction in a regular `user` message, and Claude does follow instructions that arrive in user turns. Th… multilingual-support Claude Developer Platform · in the page build-with-claude/multilingual-support …ollowing table. Test with any languages relevant to your specific use cases. ## Performance data The following table shows zero-shot scores for Claude models on [Global-MMLU](https://arxiv.org/abs/2… overview Claude Developer Platform · in the page build-with-claude/overview …nthropic Human Review is always off, so your own team reviews flagged cases that automated safety monitoring finds. | | [Forced tool use](https://platform.claude.com/docs/en/agents-and-tools/tool-use/… pdf-support Claude Developer Platform · in the page build-with-claude/pdf-support …xt, pictures, charts, and tables in PDFs you provide. Some sample use cases: * Analyzing financial reports and understanding charts/tables * Extracting key information from legal documents * Helping… fix-bound-to-a-different-conversation Claude Developer Platform · in the page build-with-claude/preserved-thinking/fix-bound-to-a-different-conversation …y hand Use this where you can’t send the setting, or in one of these cases: * After you removed a secret, personal data, or injected text, because `"drop_block"` leaves the thinking in your stored h… prefix-checks Claude Developer Platform · in the page build-with-claude/preserved-thinking/prefix-checks …ng/prefix-checks#outcomes). The defensive approach is to [handle both cases](https://platform.claude.com/docs/en/build-with-claude/preserved-thinking/prefix-checks#handle-either-outcome). ## Who the… Request 2 caches its request content (not the response) Claude Developer Platform · in the page build-with-claude/prompt-caching …ack window all apply the same as with explicit breakpoints. ### Edge cases * If the last block already has an explicit `cache_control` with the same TTL, automatic caching is a no-op. * If the last… claude-prompting-best-practices Claude Developer Platform · in the page build-with-claude/prompt-engineering/claude-prompting-best-practices …ant:** Mirror your actual use case closely. * **Diverse:** Cover edge cases and vary enough that Claude doesn’t pick up unintended patterns. * **Structured:** Wrap examples in `<example>` tags (multip… prompting-claude-fable-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-fable-5 …[X]. Make sure you know to reference [X] for future use. ``` ## Rare cases of early stopping Deep into a long session, Claude Fable 5 can occasionally end a turn with a text-only statement of intent… Delivering work Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-fable-5-1 …rs#thinking-block-conversation-mismatch). To identify and handle both cases, see [Prefix checks on thinking blocks](https://platform.claude.com/docs/en/build-with-claude/preserved-thinking/prefix-chec… prompting-claude-opus-4-8 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-opus-4-8 …costs. Start with the `xhigh` effort level for coding and agentic use cases, and use a minimum of `high` effort for most intelligence-sensitive use cases. Experiment with other effort levels to furthe… prompting-claude-opus-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-opus-5 …ms of subagents well, with effective writer-verifier patterns and few cases of agents overwriting each other’s work. For cost-sensitive workloads, cap delegation; see [Controlling subagent spawning](h… prompting-claude-sonnet-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-sonnet-5 …ort is the recommended setting for the hardest coding and agentic use cases. * **`high`:** The default. This setting balances token usage and intelligence for most use cases. * **`medium`:** Good for… search-results Claude Developer Platform · in the page build-with-claude/search-results …directly in user messages for pre-fetched or cached content. In both cases, Claude cites the search results automatically when citations are enabled. No special prompting is needed: ask your question… skills-guide Claude Developer Platform · in the page build-with-claude/skills-guide …Claude loads full Skill instructions only when needed. *** ## Use cases Skills fit both organizational and personal work. Organizations use them to apply brand formatting to documents, structure… structured-outputs Claude Developer Platform · in the page build-with-claude/structured-outputs …e", "demo_requested" => true} ``` </Tab> </Tabs> ## Common use cases <AccordionGroup> <Accordion title="Data extraction"> Extract structured data from unstructured text: <CodeGroup>… thinking Claude Developer Platform · in the page build-with-claude/thinking …nking model does not receive the summarized output. <Note> In rare cases where you need access to full thinking output, [contact Anthropic sales](mailto:[email protected]). </Note> To see a summ… thinking-steering-and-cost Claude Developer Platform · in the page build-with-claude/thinking-steering-and-cost …in responses), output token usage, latency, and answer quality on the cases that matter to you. <Warning> Steering Claude to think less often might reduce quality on tasks that benefit from reasoni… token-counting Claude Developer Platform · in the page build-with-claude/token-counting ….usage) object. <Note> The token count is an **estimate**. In some cases, the actual number of input tokens used when creating a message might differ by a small amount. Token counts might includ… vision Claude Developer Platform · in the page build-with-claude/vision …verify Claude’s image interpretations, especially for high-stakes use cases. Do not use Claude for tasks requiring perfect precision or sensitive image analysis without human oversight. *** ## FAQ… working-with-messages Claude Developer Platform · in the page build-with-claude/working-with-messages …ic offers two ways to build with Claude, each suited to different use cases: | | Messages API | Claude Managed Agents | | ----- | ----- | ----- | | **What it is** | Direct model prompting access | P… apple-foundation-models Claude Developer Platform · in the page cli-sdks-libraries/libraries/apple-foundation-models …The package maps Claude API errors onto Apple’s `LanguageModelError` cases where one fits: context-window overflow surfaces as `.contextSizeExceeded`, HTTP 429 as `.rateLimited`, a request past the c… openai-sdk Claude Developer Platform · in the page cli-sdks-libraries/libraries/openai-sdk …not considered a long-term or production-ready solution for most use cases. Although it is intended to remain fully functional and not have breaking changes, the priority is the reliability and effec… csharp Claude Developer Platform · in the page cli-sdks-libraries/sdks/csharp …s://platform.claude.com/docs/en/api/errors#sdk-error-types) lists the cases (including errors in a stream), and [Handle errors](https://platform.claude.com/docs/en/api/handle-errors) shows how to catc… go Claude Developer Platform · in the page cli-sdks-libraries/sdks/go …for example, `param.Override[anthropic.FooParams](12)`). ```go // In cases where the API specifies a given type, // but you want to send something else, use [SetExtraFields]: p.SetExtraFields(map[str… java Claude Developer Platform · in the page cli-sdks-libraries/sdks/java …s://platform.claude.com/docs/en/api/errors#sdk-error-types) lists the cases (including errors in a stream), and [Handle errors](https://platform.claude.com/docs/en/api/handle-errors) shows how to catc… php Claude Developer Platform · in the page cli-sdks-libraries/sdks/php …n that a middleware throws reaches your code unchanged, except in two cases. The SDK handles a PSR-18 `ClientExceptionInterface` as a connection error, which surfaces as `APIConnectionException`. It r… typescript Claude Developer Platform · in the page cli-sdks-libraries/sdks/typescript …production environments, or are frequently rotated. Even in these cases, browser support works only if your organization can call the Claude API directly from a browser. Organizations with zero da… access-transparency Claude Developer Platform · in the page manage-claude/access-transparency …as Access Transparency. For example, it might not be enabled in these cases: * Anthropic approved individual workspaces for CMEK, not your whole organization. * Anthropic approved your organization f… access-transparency-log Claude Developer Platform · in the page manage-claude/access-transparency-log …*An event is served without `transparency_log_leaf_index` in only two cases.** The first is while your organization is not enrolled in Access Transparency, that is, before enrollment or between an un-…
Feedback