<?php

declare(strict_types=1);

namespace KimaAI\Ai\Providers\Support;

final class ProviderMetadata {
  /**
   * Create provider metadata.
   *
   * @param list<string> $capabilities
   */
  public function __construct(
    public string $id,
    public string $name,
    public string $base_url,
    public array $capabilities = []
  ) {
  }

  public function supports(string $capability): bool {
    return in_array($capability, $this->capabilities, true);
  }
}
