|
7 | 7 | use Anthropic\Beta\Messages\Batches\BatchCreateParams\Request\Params\ServiceTier; |
8 | 8 | use Anthropic\Beta\Messages\Batches\BatchCreateParams\Request\Params\System; |
9 | 9 | use Anthropic\Beta\Messages\BetaCodeExecutionTool20250522; |
| 10 | +use Anthropic\Beta\Messages\BetaCodeExecutionTool20250825; |
10 | 11 | use Anthropic\Beta\Messages\BetaMessageParam; |
11 | 12 | use Anthropic\Beta\Messages\BetaMetadata; |
12 | 13 | use Anthropic\Beta\Messages\BetaRequestMCPServerURLDefinition; |
|
54 | 55 | * temperature?: float|null, |
55 | 56 | * thinking?: null|BetaThinkingConfigEnabled|BetaThinkingConfigDisabled, |
56 | 57 | * toolChoice?: null|BetaToolChoiceAuto|BetaToolChoiceAny|BetaToolChoiceTool|BetaToolChoiceNone, |
57 | | - * tools?: list<BetaTool|BetaToolBash20241022|BetaToolBash20250124|BetaCodeExecutionTool20250522|BetaToolComputerUse20241022|BetaToolComputerUse20250124|BetaToolTextEditor20241022|BetaToolTextEditor20250124|BetaToolTextEditor20250429|BetaToolTextEditor20250728|BetaWebSearchTool20250305>|null, |
| 58 | + * tools?: list<BetaTool|BetaToolBash20241022|BetaToolBash20250124|BetaCodeExecutionTool20250522|BetaCodeExecutionTool20250825|BetaToolComputerUse20241022|BetaToolComputerUse20250124|BetaToolTextEditor20241022|BetaToolTextEditor20250124|BetaToolTextEditor20250429|BetaToolTextEditor20250728|BetaWebSearchTool20250305>|null, |
58 | 59 | * topK?: int|null, |
59 | 60 | * topP?: float|null, |
60 | 61 | * } |
@@ -118,25 +119,7 @@ final class Params implements BaseModel |
118 | 119 | * {"role": "user", "content": [{"type": "text", "text": "Hello, Claude"}]} |
119 | 120 | * ``` |
120 | 121 | * |
121 | | - * Starting with Claude 3 models, you can also send image content blocks: |
122 | | - * |
123 | | - * ```json |
124 | | - * {"role": "user", "content": [ |
125 | | - * { |
126 | | - * "type": "image", |
127 | | - * "source": { |
128 | | - * "type": "base64", |
129 | | - * "media_type": "image/jpeg", |
130 | | - * "data": "/9j/4AAQSkZJRg...", |
131 | | - * } |
132 | | - * }, |
133 | | - * {"type": "text", "text": "What is in this image?"} |
134 | | - * ]} |
135 | | - * ``` |
136 | | - * |
137 | | - * We currently support the `base64` source type for images, and the `image/jpeg`, `image/png`, `image/gif`, and `image/webp` media types. |
138 | | - * |
139 | | - * See [examples](https://docs.anthropic.com/en/api/messages-examples#vision) for more input examples. |
| 122 | + * See [input examples](https://docs.anthropic.com/en/api/messages-examples). |
140 | 123 | * |
141 | 124 | * Note that if you want to include a [system prompt](https://docs.anthropic.com/en/docs/system-prompts), you can use the top-level `system` parameter — there is no `"system"` role for input messages in the Messages API. |
142 | 125 | * |
@@ -308,7 +291,7 @@ final class Params implements BaseModel |
308 | 291 | * |
309 | 292 | * See our [guide](https://docs.anthropic.com/en/docs/tool-use) for more details. |
310 | 293 | * |
311 | | - * @var list<BetaTool|BetaToolBash20241022|BetaToolBash20250124|BetaCodeExecutionTool20250522|BetaToolComputerUse20241022|BetaToolComputerUse20250124|BetaToolTextEditor20241022|BetaToolTextEditor20250124|BetaToolTextEditor20250429|BetaToolTextEditor20250728|BetaWebSearchTool20250305>|null $tools |
| 294 | + * @var list<BetaTool|BetaToolBash20241022|BetaToolBash20250124|BetaCodeExecutionTool20250522|BetaCodeExecutionTool20250825|BetaToolComputerUse20241022|BetaToolComputerUse20250124|BetaToolTextEditor20241022|BetaToolTextEditor20250124|BetaToolTextEditor20250429|BetaToolTextEditor20250728|BetaWebSearchTool20250305>|null $tools |
312 | 295 | */ |
313 | 296 | #[Api(list: BetaToolUnion::class, optional: true)] |
314 | 297 | public ?array $tools; |
@@ -363,7 +346,7 @@ public function __construct() |
363 | 346 | * @param ServiceTier::* $serviceTier |
364 | 347 | * @param list<string> $stopSequences |
365 | 348 | * @param string|list<BetaTextBlockParam> $system |
366 | | - * @param list<BetaTool|BetaToolBash20241022|BetaToolBash20250124|BetaCodeExecutionTool20250522|BetaToolComputerUse20241022|BetaToolComputerUse20250124|BetaToolTextEditor20241022|BetaToolTextEditor20250124|BetaToolTextEditor20250429|BetaToolTextEditor20250728|BetaWebSearchTool20250305> $tools |
| 349 | + * @param list<BetaTool|BetaToolBash20241022|BetaToolBash20250124|BetaCodeExecutionTool20250522|BetaCodeExecutionTool20250825|BetaToolComputerUse20241022|BetaToolComputerUse20250124|BetaToolTextEditor20241022|BetaToolTextEditor20250124|BetaToolTextEditor20250429|BetaToolTextEditor20250728|BetaWebSearchTool20250305> $tools |
367 | 350 | */ |
368 | 351 | public static function with( |
369 | 352 | int $maxTokens, |
@@ -465,25 +448,7 @@ public function withMaxTokens(int $maxTokens): self |
465 | 448 | * {"role": "user", "content": [{"type": "text", "text": "Hello, Claude"}]} |
466 | 449 | * ``` |
467 | 450 | * |
468 | | - * Starting with Claude 3 models, you can also send image content blocks: |
469 | | - * |
470 | | - * ```json |
471 | | - * {"role": "user", "content": [ |
472 | | - * { |
473 | | - * "type": "image", |
474 | | - * "source": { |
475 | | - * "type": "base64", |
476 | | - * "media_type": "image/jpeg", |
477 | | - * "data": "/9j/4AAQSkZJRg...", |
478 | | - * } |
479 | | - * }, |
480 | | - * {"type": "text", "text": "What is in this image?"} |
481 | | - * ]} |
482 | | - * ``` |
483 | | - * |
484 | | - * We currently support the `base64` source type for images, and the `image/jpeg`, `image/png`, `image/gif`, and `image/webp` media types. |
485 | | - * |
486 | | - * See [examples](https://docs.anthropic.com/en/api/messages-examples#vision) for more input examples. |
| 451 | + * See [input examples](https://docs.anthropic.com/en/api/messages-examples). |
487 | 452 | * |
488 | 453 | * Note that if you want to include a [system prompt](https://docs.anthropic.com/en/docs/system-prompts), you can use the top-level `system` parameter — there is no `"system"` role for input messages in the Messages API. |
489 | 454 | * |
@@ -713,7 +678,7 @@ public function withToolChoice( |
713 | 678 | * |
714 | 679 | * See our [guide](https://docs.anthropic.com/en/docs/tool-use) for more details. |
715 | 680 | * |
716 | | - * @param list<BetaTool|BetaToolBash20241022|BetaToolBash20250124|BetaCodeExecutionTool20250522|BetaToolComputerUse20241022|BetaToolComputerUse20250124|BetaToolTextEditor20241022|BetaToolTextEditor20250124|BetaToolTextEditor20250429|BetaToolTextEditor20250728|BetaWebSearchTool20250305> $tools |
| 681 | + * @param list<BetaTool|BetaToolBash20241022|BetaToolBash20250124|BetaCodeExecutionTool20250522|BetaCodeExecutionTool20250825|BetaToolComputerUse20241022|BetaToolComputerUse20250124|BetaToolTextEditor20241022|BetaToolTextEditor20250124|BetaToolTextEditor20250429|BetaToolTextEditor20250728|BetaWebSearchTool20250305> $tools |
717 | 682 | */ |
718 | 683 | public function withTools(array $tools): self |
719 | 684 | { |
|
0 commit comments