Skip to content

Commit 6159be3

Browse files
feat(api): adds support for web_fetch_20250910 tool
1 parent 2f21abe commit 6159be3

32 files changed

+1101
-40
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 23
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-d414b39af59d2f2269fe545a0446d80964c5d171c32d9ac76cf88c625d0e7b6c.yml
3-
openapi_spec_hash: 2098c28a2cce3057fdcc32cc6c474b8f
4-
config_hash: a23bacff5c0ad0412165b2e1f62ec0a5
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-013c0b7538b80dbc59b2637c12d364454630453c62518490f1726d2356506855.yml
3+
openapi_spec_hash: 87710d3846b4968bd8df1df88d865dbf
4+
config_hash: 7cb2ac2ce96cf8d5f0dafb4cf874649c

src/Beta/Messages/Batches/BatchCreateParams/Request/Params.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
use Anthropic\Beta\Messages\BetaToolTextEditor20250429;
3131
use Anthropic\Beta\Messages\BetaToolTextEditor20250728;
3232
use Anthropic\Beta\Messages\BetaToolUnion;
33+
use Anthropic\Beta\Messages\BetaWebFetchTool20250910;
3334
use Anthropic\Beta\Messages\BetaWebSearchTool20250305;
3435
use Anthropic\Core\Attributes\Api;
3536
use Anthropic\Core\Concerns\SdkModel;
@@ -55,7 +56,7 @@
5556
* temperature?: float|null,
5657
* thinking?: null|BetaThinkingConfigEnabled|BetaThinkingConfigDisabled,
5758
* toolChoice?: null|BetaToolChoiceAuto|BetaToolChoiceAny|BetaToolChoiceTool|BetaToolChoiceNone,
58-
* tools?: list<BetaTool|BetaToolBash20241022|BetaToolBash20250124|BetaCodeExecutionTool20250522|BetaCodeExecutionTool20250825|BetaToolComputerUse20241022|BetaToolComputerUse20250124|BetaToolTextEditor20241022|BetaToolTextEditor20250124|BetaToolTextEditor20250429|BetaToolTextEditor20250728|BetaWebSearchTool20250305>|null,
59+
* tools?: list<BetaTool|BetaToolBash20241022|BetaToolBash20250124|BetaCodeExecutionTool20250522|BetaCodeExecutionTool20250825|BetaToolComputerUse20241022|BetaToolComputerUse20250124|BetaToolTextEditor20241022|BetaToolTextEditor20250124|BetaToolTextEditor20250429|BetaToolTextEditor20250728|BetaWebSearchTool20250305|BetaWebFetchTool20250910>|null,
5960
* topK?: int|null,
6061
* topP?: float|null,
6162
* }
@@ -291,7 +292,7 @@ final class Params implements BaseModel
291292
*
292293
* See our [guide](https://docs.anthropic.com/en/docs/tool-use) for more details.
293294
*
294-
* @var list<BetaTool|BetaToolBash20241022|BetaToolBash20250124|BetaCodeExecutionTool20250522|BetaCodeExecutionTool20250825|BetaToolComputerUse20241022|BetaToolComputerUse20250124|BetaToolTextEditor20241022|BetaToolTextEditor20250124|BetaToolTextEditor20250429|BetaToolTextEditor20250728|BetaWebSearchTool20250305>|null $tools
295+
* @var list<BetaTool|BetaToolBash20241022|BetaToolBash20250124|BetaCodeExecutionTool20250522|BetaCodeExecutionTool20250825|BetaToolComputerUse20241022|BetaToolComputerUse20250124|BetaToolTextEditor20241022|BetaToolTextEditor20250124|BetaToolTextEditor20250429|BetaToolTextEditor20250728|BetaWebSearchTool20250305|BetaWebFetchTool20250910>|null $tools
295296
*/
296297
#[Api(list: BetaToolUnion::class, optional: true)]
297298
public ?array $tools;
@@ -346,7 +347,7 @@ public function __construct()
346347
* @param ServiceTier::* $serviceTier
347348
* @param list<string> $stopSequences
348349
* @param string|list<BetaTextBlockParam> $system
349-
* @param list<BetaTool|BetaToolBash20241022|BetaToolBash20250124|BetaCodeExecutionTool20250522|BetaCodeExecutionTool20250825|BetaToolComputerUse20241022|BetaToolComputerUse20250124|BetaToolTextEditor20241022|BetaToolTextEditor20250124|BetaToolTextEditor20250429|BetaToolTextEditor20250728|BetaWebSearchTool20250305> $tools
350+
* @param list<BetaTool|BetaToolBash20241022|BetaToolBash20250124|BetaCodeExecutionTool20250522|BetaCodeExecutionTool20250825|BetaToolComputerUse20241022|BetaToolComputerUse20250124|BetaToolTextEditor20241022|BetaToolTextEditor20250124|BetaToolTextEditor20250429|BetaToolTextEditor20250728|BetaWebSearchTool20250305|BetaWebFetchTool20250910> $tools
350351
*/
351352
public static function with(
352353
int $maxTokens,
@@ -678,7 +679,7 @@ public function withToolChoice(
678679
*
679680
* See our [guide](https://docs.anthropic.com/en/docs/tool-use) for more details.
680681
*
681-
* @param list<BetaTool|BetaToolBash20241022|BetaToolBash20250124|BetaCodeExecutionTool20250522|BetaCodeExecutionTool20250825|BetaToolComputerUse20241022|BetaToolComputerUse20250124|BetaToolTextEditor20241022|BetaToolTextEditor20250124|BetaToolTextEditor20250429|BetaToolTextEditor20250728|BetaWebSearchTool20250305> $tools
682+
* @param list<BetaTool|BetaToolBash20241022|BetaToolBash20250124|BetaCodeExecutionTool20250522|BetaCodeExecutionTool20250825|BetaToolComputerUse20241022|BetaToolComputerUse20250124|BetaToolTextEditor20241022|BetaToolTextEditor20250124|BetaToolTextEditor20250429|BetaToolTextEditor20250728|BetaWebSearchTool20250305|BetaWebFetchTool20250910> $tools
682683
*/
683684
public function withTools(array $tools): self
684685
{
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Anthropic\Beta\Messages;
6+
7+
use Anthropic\Core\Attributes\Api;
8+
use Anthropic\Core\Concerns\SdkModel;
9+
use Anthropic\Core\Contracts\BaseModel;
10+
11+
/**
12+
* @phpstan-type beta_citation_config = array{enabled: bool}
13+
*/
14+
final class BetaCitationConfig implements BaseModel
15+
{
16+
/** @use SdkModel<beta_citation_config> */
17+
use SdkModel;
18+
19+
#[Api]
20+
public bool $enabled;
21+
22+
/**
23+
* `new BetaCitationConfig()` is missing required properties by the API.
24+
*
25+
* To enforce required parameters use
26+
* ```
27+
* BetaCitationConfig::with(enabled: ...)
28+
* ```
29+
*
30+
* Otherwise ensure the following setters are called
31+
*
32+
* ```
33+
* (new BetaCitationConfig)->withEnabled(...)
34+
* ```
35+
*/
36+
public function __construct()
37+
{
38+
$this->initialize();
39+
}
40+
41+
/**
42+
* Construct an instance from the required parameters.
43+
*
44+
* You must use named parameters to construct any parameters with a default value.
45+
*/
46+
public static function with(bool $enabled = false): self
47+
{
48+
$obj = new self;
49+
50+
$obj->enabled = $enabled;
51+
52+
return $obj;
53+
}
54+
55+
public function withEnabled(bool $enabled): self
56+
{
57+
$obj = clone $this;
58+
$obj->enabled = $enabled;
59+
60+
return $obj;
61+
}
62+
}

src/Beta/Messages/BetaContentBlock.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public static function variants(): array
3333
'tool_use' => BetaToolUseBlock::class,
3434
'server_tool_use' => BetaServerToolUseBlock::class,
3535
'web_search_tool_result' => BetaWebSearchToolResultBlock::class,
36+
'web_fetch_tool_result' => BetaWebFetchToolResultBlock::class,
3637
'code_execution_tool_result' => BetaCodeExecutionToolResultBlock::class,
3738
'bash_code_execution_tool_result' => BetaBashCodeExecutionToolResultBlock::class,
3839
'text_editor_code_execution_tool_result' => BetaTextEditorCodeExecutionToolResultBlock::class,

src/Beta/Messages/BetaContentBlockParam.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public static function variants(): array
3737
'tool_result' => BetaToolResultBlockParam::class,
3838
'server_tool_use' => BetaServerToolUseBlockParam::class,
3939
'web_search_tool_result' => BetaWebSearchToolResultBlockParam::class,
40+
'web_fetch_tool_result' => BetaWebFetchToolResultBlockParam::class,
4041
'code_execution_tool_result' => BetaCodeExecutionToolResultBlockParam::class,
4142
'bash_code_execution_tool_result' => BetaBashCodeExecutionToolResultBlockParam::class,
4243
'text_editor_code_execution_tool_result' => BetaTextEditorCodeExecutionToolResultBlockParam::class,
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Anthropic\Beta\Messages;
6+
7+
use Anthropic\Beta\Messages\BetaDocumentBlock\Source;
8+
use Anthropic\Core\Attributes\Api;
9+
use Anthropic\Core\Concerns\SdkModel;
10+
use Anthropic\Core\Contracts\BaseModel;
11+
12+
/**
13+
* @phpstan-type beta_document_block = array{
14+
* citations: BetaCitationConfig,
15+
* source: BetaBase64PDFSource|BetaPlainTextSource,
16+
* title: string|null,
17+
* type: string,
18+
* }
19+
*/
20+
final class BetaDocumentBlock implements BaseModel
21+
{
22+
/** @use SdkModel<beta_document_block> */
23+
use SdkModel;
24+
25+
#[Api]
26+
public string $type = 'document';
27+
28+
/**
29+
* Citation configuration for the document.
30+
*/
31+
#[Api]
32+
public BetaCitationConfig $citations;
33+
34+
#[Api(union: Source::class)]
35+
public BetaBase64PDFSource|BetaPlainTextSource $source;
36+
37+
/**
38+
* The title of the document.
39+
*/
40+
#[Api]
41+
public ?string $title;
42+
43+
/**
44+
* `new BetaDocumentBlock()` is missing required properties by the API.
45+
*
46+
* To enforce required parameters use
47+
* ```
48+
* BetaDocumentBlock::with(citations: ..., source: ..., title: ...)
49+
* ```
50+
*
51+
* Otherwise ensure the following setters are called
52+
*
53+
* ```
54+
* (new BetaDocumentBlock)->withCitations(...)->withSource(...)->withTitle(...)
55+
* ```
56+
*/
57+
public function __construct()
58+
{
59+
$this->initialize();
60+
}
61+
62+
/**
63+
* Construct an instance from the required parameters.
64+
*
65+
* You must use named parameters to construct any parameters with a default value.
66+
*/
67+
public static function with(
68+
BetaCitationConfig $citations,
69+
BetaBase64PDFSource|BetaPlainTextSource $source,
70+
?string $title,
71+
): self {
72+
$obj = new self;
73+
74+
$obj->citations = $citations;
75+
$obj->source = $source;
76+
$obj->title = $title;
77+
78+
return $obj;
79+
}
80+
81+
/**
82+
* Citation configuration for the document.
83+
*/
84+
public function withCitations(BetaCitationConfig $citations): self
85+
{
86+
$obj = clone $this;
87+
$obj->citations = $citations;
88+
89+
return $obj;
90+
}
91+
92+
public function withSource(
93+
BetaBase64PDFSource|BetaPlainTextSource $source
94+
): self {
95+
$obj = clone $this;
96+
$obj->source = $source;
97+
98+
return $obj;
99+
}
100+
101+
/**
102+
* The title of the document.
103+
*/
104+
public function withTitle(?string $title): self
105+
{
106+
$obj = clone $this;
107+
$obj->title = $title;
108+
109+
return $obj;
110+
}
111+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Anthropic\Beta\Messages\BetaDocumentBlock;
6+
7+
use Anthropic\Beta\Messages\BetaBase64PDFSource;
8+
use Anthropic\Beta\Messages\BetaPlainTextSource;
9+
use Anthropic\Core\Concerns\SdkUnion;
10+
use Anthropic\Core\Conversion\Contracts\Converter;
11+
use Anthropic\Core\Conversion\Contracts\ConverterSource;
12+
13+
final class Source implements ConverterSource
14+
{
15+
use SdkUnion;
16+
17+
public static function discriminator(): string
18+
{
19+
return 'type';
20+
}
21+
22+
/**
23+
* @return list<string|Converter|ConverterSource>|array<string,
24+
* string|Converter|ConverterSource,>
25+
*/
26+
public static function variants(): array
27+
{
28+
return [
29+
'base64' => BetaBase64PDFSource::class,
30+
'text' => BetaPlainTextSource::class,
31+
];
32+
}
33+
}

src/Beta/Messages/BetaMessage.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* @phpstan-type beta_message = array{
1414
* id: string,
1515
* container: BetaContainer,
16-
* content: list<BetaTextBlock|BetaThinkingBlock|BetaRedactedThinkingBlock|BetaToolUseBlock|BetaServerToolUseBlock|BetaWebSearchToolResultBlock|BetaCodeExecutionToolResultBlock|BetaBashCodeExecutionToolResultBlock|BetaTextEditorCodeExecutionToolResultBlock|BetaMCPToolUseBlock|BetaMCPToolResultBlock|BetaContainerUploadBlock>,
16+
* content: list<BetaTextBlock|BetaThinkingBlock|BetaRedactedThinkingBlock|BetaToolUseBlock|BetaServerToolUseBlock|BetaWebSearchToolResultBlock|BetaWebFetchToolResultBlock|BetaCodeExecutionToolResultBlock|BetaBashCodeExecutionToolResultBlock|BetaTextEditorCodeExecutionToolResultBlock|BetaMCPToolUseBlock|BetaMCPToolResultBlock|BetaContainerUploadBlock>,
1717
* model: Model::*|string,
1818
* role: string,
1919
* stopReason: BetaStopReason::*,
@@ -84,7 +84,7 @@ final class BetaMessage implements BaseModel
8484
* [{"type": "text", "text": "B)"}]
8585
* ```
8686
*
87-
* @var list<BetaTextBlock|BetaThinkingBlock|BetaRedactedThinkingBlock|BetaToolUseBlock|BetaServerToolUseBlock|BetaWebSearchToolResultBlock|BetaCodeExecutionToolResultBlock|BetaBashCodeExecutionToolResultBlock|BetaTextEditorCodeExecutionToolResultBlock|BetaMCPToolUseBlock|BetaMCPToolResultBlock|BetaContainerUploadBlock> $content
87+
* @var list<BetaTextBlock|BetaThinkingBlock|BetaRedactedThinkingBlock|BetaToolUseBlock|BetaServerToolUseBlock|BetaWebSearchToolResultBlock|BetaWebFetchToolResultBlock|BetaCodeExecutionToolResultBlock|BetaBashCodeExecutionToolResultBlock|BetaTextEditorCodeExecutionToolResultBlock|BetaMCPToolUseBlock|BetaMCPToolResultBlock|BetaContainerUploadBlock> $content
8888
*/
8989
#[Api(list: BetaContentBlock::class)]
9090
public array $content;
@@ -176,7 +176,7 @@ public function __construct()
176176
*
177177
* You must use named parameters to construct any parameters with a default value.
178178
*
179-
* @param list<BetaTextBlock|BetaThinkingBlock|BetaRedactedThinkingBlock|BetaToolUseBlock|BetaServerToolUseBlock|BetaWebSearchToolResultBlock|BetaCodeExecutionToolResultBlock|BetaBashCodeExecutionToolResultBlock|BetaTextEditorCodeExecutionToolResultBlock|BetaMCPToolUseBlock|BetaMCPToolResultBlock|BetaContainerUploadBlock> $content
179+
* @param list<BetaTextBlock|BetaThinkingBlock|BetaRedactedThinkingBlock|BetaToolUseBlock|BetaServerToolUseBlock|BetaWebSearchToolResultBlock|BetaWebFetchToolResultBlock|BetaCodeExecutionToolResultBlock|BetaBashCodeExecutionToolResultBlock|BetaTextEditorCodeExecutionToolResultBlock|BetaMCPToolUseBlock|BetaMCPToolResultBlock|BetaContainerUploadBlock> $content
180180
* @param Model::*|string $model
181181
* @param BetaStopReason::* $stopReason
182182
*/
@@ -253,7 +253,7 @@ public function withContainer(BetaContainer $container): self
253253
* [{"type": "text", "text": "B)"}]
254254
* ```
255255
*
256-
* @param list<BetaTextBlock|BetaThinkingBlock|BetaRedactedThinkingBlock|BetaToolUseBlock|BetaServerToolUseBlock|BetaWebSearchToolResultBlock|BetaCodeExecutionToolResultBlock|BetaBashCodeExecutionToolResultBlock|BetaTextEditorCodeExecutionToolResultBlock|BetaMCPToolUseBlock|BetaMCPToolResultBlock|BetaContainerUploadBlock> $content
256+
* @param list<BetaTextBlock|BetaThinkingBlock|BetaRedactedThinkingBlock|BetaToolUseBlock|BetaServerToolUseBlock|BetaWebSearchToolResultBlock|BetaWebFetchToolResultBlock|BetaCodeExecutionToolResultBlock|BetaBashCodeExecutionToolResultBlock|BetaTextEditorCodeExecutionToolResultBlock|BetaMCPToolUseBlock|BetaMCPToolResultBlock|BetaContainerUploadBlock> $content
257257
*/
258258
public function withContent(array $content): self
259259
{

src/Beta/Messages/BetaMessageParam.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
/**
1414
* @phpstan-type beta_message_param = array{
15-
* content: string|list<BetaTextBlockParam|BetaImageBlockParam|BetaRequestDocumentBlock|BetaSearchResultBlockParam|BetaThinkingBlockParam|BetaRedactedThinkingBlockParam|BetaToolUseBlockParam|BetaToolResultBlockParam|BetaServerToolUseBlockParam|BetaWebSearchToolResultBlockParam|BetaCodeExecutionToolResultBlockParam|BetaBashCodeExecutionToolResultBlockParam|BetaTextEditorCodeExecutionToolResultBlockParam|BetaMCPToolUseBlockParam|BetaRequestMCPToolResultBlockParam|BetaContainerUploadBlockParam>,
15+
* content: string|list<BetaTextBlockParam|BetaImageBlockParam|BetaRequestDocumentBlock|BetaSearchResultBlockParam|BetaThinkingBlockParam|BetaRedactedThinkingBlockParam|BetaToolUseBlockParam|BetaToolResultBlockParam|BetaServerToolUseBlockParam|BetaWebSearchToolResultBlockParam|BetaWebFetchToolResultBlockParam|BetaCodeExecutionToolResultBlockParam|BetaBashCodeExecutionToolResultBlockParam|BetaTextEditorCodeExecutionToolResultBlockParam|BetaMCPToolUseBlockParam|BetaRequestMCPToolResultBlockParam|BetaContainerUploadBlockParam>,
1616
* role: Role::*,
1717
* }
1818
*/
@@ -22,7 +22,7 @@ final class BetaMessageParam implements BaseModel
2222
use SdkModel;
2323

2424
/**
25-
* @var string|list<BetaTextBlockParam|BetaImageBlockParam|BetaRequestDocumentBlock|BetaSearchResultBlockParam|BetaThinkingBlockParam|BetaRedactedThinkingBlockParam|BetaToolUseBlockParam|BetaToolResultBlockParam|BetaServerToolUseBlockParam|BetaWebSearchToolResultBlockParam|BetaCodeExecutionToolResultBlockParam|BetaBashCodeExecutionToolResultBlockParam|BetaTextEditorCodeExecutionToolResultBlockParam|BetaMCPToolUseBlockParam|BetaRequestMCPToolResultBlockParam|BetaContainerUploadBlockParam> $content
25+
* @var string|list<BetaTextBlockParam|BetaImageBlockParam|BetaRequestDocumentBlock|BetaSearchResultBlockParam|BetaThinkingBlockParam|BetaRedactedThinkingBlockParam|BetaToolUseBlockParam|BetaToolResultBlockParam|BetaServerToolUseBlockParam|BetaWebSearchToolResultBlockParam|BetaWebFetchToolResultBlockParam|BetaCodeExecutionToolResultBlockParam|BetaBashCodeExecutionToolResultBlockParam|BetaTextEditorCodeExecutionToolResultBlockParam|BetaMCPToolUseBlockParam|BetaRequestMCPToolResultBlockParam|BetaContainerUploadBlockParam> $content
2626
*/
2727
#[Api(union: Content::class)]
2828
public string|array $content;
@@ -55,7 +55,7 @@ public function __construct()
5555
*
5656
* You must use named parameters to construct any parameters with a default value.
5757
*
58-
* @param string|list<BetaTextBlockParam|BetaImageBlockParam|BetaRequestDocumentBlock|BetaSearchResultBlockParam|BetaThinkingBlockParam|BetaRedactedThinkingBlockParam|BetaToolUseBlockParam|BetaToolResultBlockParam|BetaServerToolUseBlockParam|BetaWebSearchToolResultBlockParam|BetaCodeExecutionToolResultBlockParam|BetaBashCodeExecutionToolResultBlockParam|BetaTextEditorCodeExecutionToolResultBlockParam|BetaMCPToolUseBlockParam|BetaRequestMCPToolResultBlockParam|BetaContainerUploadBlockParam> $content
58+
* @param string|list<BetaTextBlockParam|BetaImageBlockParam|BetaRequestDocumentBlock|BetaSearchResultBlockParam|BetaThinkingBlockParam|BetaRedactedThinkingBlockParam|BetaToolUseBlockParam|BetaToolResultBlockParam|BetaServerToolUseBlockParam|BetaWebSearchToolResultBlockParam|BetaWebFetchToolResultBlockParam|BetaCodeExecutionToolResultBlockParam|BetaBashCodeExecutionToolResultBlockParam|BetaTextEditorCodeExecutionToolResultBlockParam|BetaMCPToolUseBlockParam|BetaRequestMCPToolResultBlockParam|BetaContainerUploadBlockParam> $content
5959
* @param Role::* $role
6060
*/
6161
public static function with(string|array $content, string $role): self
@@ -69,7 +69,7 @@ public static function with(string|array $content, string $role): self
6969
}
7070

7171
/**
72-
* @param string|list<BetaTextBlockParam|BetaImageBlockParam|BetaRequestDocumentBlock|BetaSearchResultBlockParam|BetaThinkingBlockParam|BetaRedactedThinkingBlockParam|BetaToolUseBlockParam|BetaToolResultBlockParam|BetaServerToolUseBlockParam|BetaWebSearchToolResultBlockParam|BetaCodeExecutionToolResultBlockParam|BetaBashCodeExecutionToolResultBlockParam|BetaTextEditorCodeExecutionToolResultBlockParam|BetaMCPToolUseBlockParam|BetaRequestMCPToolResultBlockParam|BetaContainerUploadBlockParam> $content
72+
* @param string|list<BetaTextBlockParam|BetaImageBlockParam|BetaRequestDocumentBlock|BetaSearchResultBlockParam|BetaThinkingBlockParam|BetaRedactedThinkingBlockParam|BetaToolUseBlockParam|BetaToolResultBlockParam|BetaServerToolUseBlockParam|BetaWebSearchToolResultBlockParam|BetaWebFetchToolResultBlockParam|BetaCodeExecutionToolResultBlockParam|BetaBashCodeExecutionToolResultBlockParam|BetaTextEditorCodeExecutionToolResultBlockParam|BetaMCPToolUseBlockParam|BetaRequestMCPToolResultBlockParam|BetaContainerUploadBlockParam> $content
7373
*/
7474
public function withContent(string|array $content): self
7575
{

0 commit comments

Comments
 (0)