Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

structured-outputs changedbuild-with-claude/structured-outputs

Nearest release: v2.1.330, published under an hour before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+19added
Lines−19removed
From line 631 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits35to this page, all time

The whole hunk

from line 631, old and new numbered
/
lines
from line 631
631631 <Accordion title="Type inference">
632632 The SDK maps native PHP 8 property types to JSON Schema:
633633 
634 | PHP type | JSON Schema |
635 | ------------------------------------------ | ---------------------------------- |
636 | `string` | `"string"` |
637 | `int` | `"integer"` |
638 | `float` | `"number"` |
639 | `bool` | `"boolean"` |
640 | `array` | `"array"` (see the following note) |
641 | `?type` (nullable) | Optional field |
642 | Class implementing `StructuredOutputModel` | Nested object |
634 | PHP type | JSON Schema |
635 | ----- | ----- |
636 | `string` | `"string"` |
637 | `int` | `"integer"` |
638 | `float` | `"number"` |
639 | `bool` | `"boolean"` |
640 | `array` | `"array"` (see the following note) |
641 | `?type` (nullable) | Optional field |
642 | Class implementing `StructuredOutputModel` | Nested object |
643643 
644644 For `array` properties, the SDK adds an `items` schema only when the element type is a nested `StructuredOutputModel`, declared with `#[Constrained(itemClass: MyModel::class)]` or a `/** @var MyModel[] */` docblock. Arrays of scalars (`string[]`, `int[]`) emit an unconstrained `{"type":"array"}`.
645645 
from line 3019
30193019 
30203020The following limits apply to all requests with `output_config.format` or `strict: true`:
30213021 
3022| Limit | Value | Description |
3023| --------------------------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
3024| Strict tools per request | 20 | Maximum number of tools with `strict: true`. Non-strict tools don’t count toward this limit. |
3025| Optional parameters | 24 | Total optional parameters across all strict tool schemas and JSON output schemas. Each parameter not listed in `required` counts toward this limit. |
3026| Parameters with union types | 16 | Total parameters that use `anyOf` or type arrays (for example, `"type": ["string", "null"]`) across all strict schemas. These are especially expensive because they create exponential compilation cost. |
3022| Limit | Value | Description |
3023| ----- | ----- | ----- |
3024| Strict tools per request | 20 | Maximum number of tools with `strict: true`. Non-strict tools don’t count toward this limit. |
3025| Optional parameters | 24 | Total optional parameters across all strict tool schemas and JSON output schemas. Each parameter not listed in `required` counts toward this limit. |
3026| Parameters with union types | 16 | Total parameters that use `anyOf` or type arrays (for example, `"type": ["string", "null"]`) across all strict schemas. These are especially expensive because they create exponential compilation cost. |
30273027 
30283028<Note>
30293029 These limits apply to the combined total across all strict schemas in a single request. For example, if you have four strict tools with six optional parameters each, you’ll reach the 24-parameter limit even though no single tool seems complex.
from line 3083
30833083 
30843084* Availability: Available
30853085 
3086| Status | Cloud platforms | Models |
3087| --------- | ----------------------- | ----------------------------------------------------------------- |
3086| Status | Cloud platforms | Models |
3087| ----- | ----- | ----- |
30883088| Available | All supported platforms | [All models](https://platform.claude.com/docs/en/models/overview) |
30893089 
30903090#### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
from line 3095
30953095 
30963096[Data handling overview](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#feature-eligibility)
30973097 
3098| Item | Zero data retention | HIPAA |
3099| ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
3100| Status | Eligible (qualified; excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Eligible |
3098| Item | Zero data retention | HIPAA |
3099| ----- | ----- | ----- |
3100| Status | Eligible (qualified; excludes [Covered Models](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#model-specific-data-retention-requirements)) | Eligible |
31013101| Details | Your prompts and Claude’s outputs are not stored. Only the JSON schema is cached, for up to 24 hours since last use. This also covers strict tool use (`strict: true` on tools), which uses the same grammar pipeline. [Learn more](https://platform.claude.com/docs/en/build-with-claude/structured-outputs#data-retention) | PHI must not be included in JSON schema definitions; see PHI handling guidelines. [Learn more](https://platform.claude.com/docs/en/manage-claude/api-and-data-retention#phi-handling-guidelines) |
31023102 
31033103Applicable endpoints:
Feedback