<?php

declare(strict_types=1);

namespace KimaAI\Ai\Providers\DTO;

final class StreamChunk {
  public const TYPE_TEXT_DELTA = 'text_delta';
  public const TYPE_TOOL = 'tool';
  public const TYPE_COMPLETED = 'completed';
  public const TYPE_ERROR = 'error';
  public const TYPE_RAW = 'raw';

  public function __construct(
    public string $type,
    public ?string $text = null,
    public array $data = [],
    public array $raw = []
  ) {
  }
}
