<?php
namespace App\AI\Api\Claude\Messages; class ToolChoiceTool implements \JsonSerializable { public $type = 'tool'; public $name; public $disable_parallel_tool_use; public function __construct(string $name) { $this->name = $name; } public function jsonSerialize(): mixed { if (is_null($this->disable_parallel_tool_use)) { unset($this->disable_parallel_tool_use); } return $this; } } 