<?php

declare(strict_types=1);

namespace ClaudePhp\Types;

/**
 * Web search tool result block content
 *
 * @readonly
 */
class WebSearchToolResultBlockContent
{
    /**
     * @param string $type The type identifier ("tool_result")
     * @param string $tool_use_id The ID of the tool use this result is for
     * @param null|array<array<string, mixed>>|string $content The result content
     * @param null|bool $is_error Whether the result represents an error
     */
    public function __construct(
        public readonly string $type,
        public readonly string $tool_use_id,
        public readonly array|string|null $content = null,
        public readonly ?bool $is_error = null,
    ) {
    }
}
