Skip to content

Commit a2c07ea

Browse files
chore(docs): small updates to descriptions
1 parent 3be4d22 commit a2c07ea

13 files changed

Lines changed: 138 additions & 2 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 130
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic/anthropic-6f50d4734ed3d091e593f0add6090591d197529834e3b15ccc83a70c88c2fc6d.yml
3-
openapi_spec_hash: d2deb0fef6a15bf53cc6c53f07973a54
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic/anthropic-c48ea225ef1d1685f19d56df1b647b69026a203fe6ad6cb913c832856d223418.yml
3+
openapi_spec_hash: e9c540d82f06430a4b554f73df4ef914
44
config_hash: d335041db7fb23dedd07cf9ff13a1565

src/Beta/Messages/BetaRedactedThinkingBlock.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ final class BetaRedactedThinkingBlock implements BaseModel
2222
#[Required]
2323
public string $type = 'redacted_thinking';
2424

25+
/**
26+
* The contents of this redacted thinking block, returned when portions of the model's thinking were safety-redacted. This field is opaque and encrypted, with no readable content.
27+
*
28+
* Pass `redacted_thinking` blocks back to the API unchanged when continuing a multi-turn conversation.
29+
*
30+
* See [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking#redacted-thinking-blocks) for details.
31+
*/
2532
#[Required]
2633
public string $data;
2734

@@ -58,6 +65,13 @@ public static function with(string $data): self
5865
return $self;
5966
}
6067

68+
/**
69+
* The contents of this redacted thinking block, returned when portions of the model's thinking were safety-redacted. This field is opaque and encrypted, with no readable content.
70+
*
71+
* Pass `redacted_thinking` blocks back to the API unchanged when continuing a multi-turn conversation.
72+
*
73+
* See [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking#redacted-thinking-blocks) for details.
74+
*/
6175
public function withData(string $data): self
6276
{
6377
$self = clone $this;

src/Beta/Messages/BetaRedactedThinkingBlockParam.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ final class BetaRedactedThinkingBlockParam implements BaseModel
2222
#[Required]
2323
public string $type = 'redacted_thinking';
2424

25+
/**
26+
* The `data` value of this redacted thinking block, exactly as returned by the API in a previous response. Opaque and encrypted; pass it back unchanged.
27+
*/
2528
#[Required]
2629
public string $data;
2730

@@ -58,6 +61,9 @@ public static function with(string $data): self
5861
return $self;
5962
}
6063

64+
/**
65+
* The `data` value of this redacted thinking block, exactly as returned by the API in a previous response. Opaque and encrypted; pass it back unchanged.
66+
*/
6167
public function withData(string $data): self
6268
{
6369
$self = clone $this;

src/Beta/Messages/BetaSignatureDelta.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ final class BetaSignatureDelta implements BaseModel
2222
#[Required]
2323
public string $type = 'signature_delta';
2424

25+
/**
26+
* The `signature` for this thinking block: an opaque value used to verify that the block was generated by Claude when it is passed back to the API. Delivered in a `signature_delta` event just before the block's `content_block_stop` event.
27+
*/
2528
#[Required]
2629
public string $signature;
2730

@@ -58,6 +61,9 @@ public static function with(string $signature): self
5861
return $self;
5962
}
6063

64+
/**
65+
* The `signature` for this thinking block: an opaque value used to verify that the block was generated by Claude when it is passed back to the API. Delivered in a `signature_delta` event just before the block's `content_block_stop` event.
66+
*/
6167
public function withSignature(string $signature): self
6268
{
6369
$self = clone $this;

src/Beta/Messages/BetaThinkingBlock.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,19 @@ final class BetaThinkingBlock implements BaseModel
2222
#[Required]
2323
public string $type = 'thinking';
2424

25+
/**
26+
* A value used to verify that this thinking block was generated by Claude when it is passed back to the API.
27+
*
28+
* This is an opaque field and should not be interpreted or parsed. When passing thinking blocks back to the API (required when using tools with extended thinking), pass them back exactly as received, with this field intact.
29+
*
30+
* See [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking) for details.
31+
*/
2532
#[Required]
2633
public string $signature;
2734

35+
/**
36+
* The text of Claude's thinking process for this block.
37+
*/
2838
#[Required]
2939
public string $thinking;
3040

@@ -62,6 +72,13 @@ public static function with(string $signature, string $thinking): self
6272
return $self;
6373
}
6474

75+
/**
76+
* A value used to verify that this thinking block was generated by Claude when it is passed back to the API.
77+
*
78+
* This is an opaque field and should not be interpreted or parsed. When passing thinking blocks back to the API (required when using tools with extended thinking), pass them back exactly as received, with this field intact.
79+
*
80+
* See [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking) for details.
81+
*/
6582
public function withSignature(string $signature): self
6683
{
6784
$self = clone $this;
@@ -70,6 +87,9 @@ public function withSignature(string $signature): self
7087
return $self;
7188
}
7289

90+
/**
91+
* The text of Claude's thinking process for this block.
92+
*/
7393
public function withThinking(string $thinking): self
7494
{
7595
$self = clone $this;

src/Beta/Messages/BetaThinkingBlockParam.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,17 @@ final class BetaThinkingBlockParam implements BaseModel
2222
#[Required]
2323
public string $type = 'thinking';
2424

25+
/**
26+
* The `signature` value of this thinking block, exactly as returned by the API in a previous response. Used to verify that the block was generated by Claude.
27+
*
28+
* Thinking blocks must be passed back unmodified and in their original order; a modified block results in a 400 `invalid_request_error`.
29+
*/
2530
#[Required]
2631
public string $signature;
2732

33+
/**
34+
* The `thinking` text of this block as returned by the API.
35+
*/
2836
#[Required]
2937
public string $thinking;
3038

@@ -62,6 +70,11 @@ public static function with(string $signature, string $thinking): self
6270
return $self;
6371
}
6472

73+
/**
74+
* The `signature` value of this thinking block, exactly as returned by the API in a previous response. Used to verify that the block was generated by Claude.
75+
*
76+
* Thinking blocks must be passed back unmodified and in their original order; a modified block results in a 400 `invalid_request_error`.
77+
*/
6578
public function withSignature(string $signature): self
6679
{
6780
$self = clone $this;
@@ -70,6 +83,9 @@ public function withSignature(string $signature): self
7083
return $self;
7184
}
7285

86+
/**
87+
* The `thinking` text of this block as returned by the API.
88+
*/
7389
public function withThinking(string $thinking): self
7490
{
7591
$self = clone $this;

src/Beta/Messages/BetaThinkingDelta.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ final class BetaThinkingDelta implements BaseModel
2828
#[Required('estimated_tokens')]
2929
public ?int $estimatedTokens;
3030

31+
/**
32+
* The incremental `thinking` text for this content block. Concatenate the `thinking` values of successive `thinking_delta` events to assemble the block's full `thinking` value.
33+
*/
3134
#[Required]
3235
public string $thinking;
3336

@@ -76,6 +79,9 @@ public function withEstimatedTokens(?int $estimatedTokens): self
7679
return $self;
7780
}
7881

82+
/**
83+
* The incremental `thinking` text for this content block. Concatenate the `thinking` values of successive `thinking_delta` events to assemble the block's full `thinking` value.
84+
*/
7985
public function withThinking(string $thinking): self
8086
{
8187
$self = clone $this;

src/Messages/RedactedThinkingBlock.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ final class RedactedThinkingBlock implements BaseModel
2222
#[Required]
2323
public string $type = 'redacted_thinking';
2424

25+
/**
26+
* The contents of this redacted thinking block, returned when portions of the model's thinking were safety-redacted. This field is opaque and encrypted, with no readable content.
27+
*
28+
* Pass `redacted_thinking` blocks back to the API unchanged when continuing a multi-turn conversation.
29+
*
30+
* See [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking#redacted-thinking-blocks) for details.
31+
*/
2532
#[Required]
2633
public string $data;
2734

@@ -58,6 +65,13 @@ public static function with(string $data): self
5865
return $self;
5966
}
6067

68+
/**
69+
* The contents of this redacted thinking block, returned when portions of the model's thinking were safety-redacted. This field is opaque and encrypted, with no readable content.
70+
*
71+
* Pass `redacted_thinking` blocks back to the API unchanged when continuing a multi-turn conversation.
72+
*
73+
* See [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking#redacted-thinking-blocks) for details.
74+
*/
6175
public function withData(string $data): self
6276
{
6377
$self = clone $this;

src/Messages/RedactedThinkingBlockParam.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ final class RedactedThinkingBlockParam implements BaseModel
2222
#[Required]
2323
public string $type = 'redacted_thinking';
2424

25+
/**
26+
* The `data` value of this redacted thinking block, exactly as returned by the API in a previous response. Opaque and encrypted; pass it back unchanged.
27+
*/
2528
#[Required]
2629
public string $data;
2730

@@ -58,6 +61,9 @@ public static function with(string $data): self
5861
return $self;
5962
}
6063

64+
/**
65+
* The `data` value of this redacted thinking block, exactly as returned by the API in a previous response. Opaque and encrypted; pass it back unchanged.
66+
*/
6167
public function withData(string $data): self
6268
{
6369
$self = clone $this;

src/Messages/SignatureDelta.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ final class SignatureDelta implements BaseModel
2222
#[Required]
2323
public string $type = 'signature_delta';
2424

25+
/**
26+
* The `signature` for this thinking block: an opaque value used to verify that the block was generated by Claude when it is passed back to the API. Delivered in a `signature_delta` event just before the block's `content_block_stop` event.
27+
*/
2528
#[Required]
2629
public string $signature;
2730

@@ -58,6 +61,9 @@ public static function with(string $signature): self
5861
return $self;
5962
}
6063

64+
/**
65+
* The `signature` for this thinking block: an opaque value used to verify that the block was generated by Claude when it is passed back to the API. Delivered in a `signature_delta` event just before the block's `content_block_stop` event.
66+
*/
6167
public function withSignature(string $signature): self
6268
{
6369
$self = clone $this;

0 commit comments

Comments
 (0)