AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

AiResponse.php 346B

1234567891011121314151617
  1. <?php
  2. namespace App\Ai;
  3. /**
  4. * One answer from an AI model. The same shape for every provider.
  5. */
  6. final readonly class AiResponse
  7. {
  8. public function __construct(
  9. public string $text,
  10. public string $provider,
  11. public string $model,
  12. public int $inputTokens = 0,
  13. public int $outputTokens = 0,
  14. ) {}
  15. }