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

PlanResult.php 522B

12345678910111213141516171819202122
  1. <?php
  2. namespace App\StorePlan\Ai;
  3. /**
  4. * A checked store plan that came back from the AI, with what it cost.
  5. */
  6. final readonly class PlanResult
  7. {
  8. /**
  9. * @param array<string, mixed> $plan
  10. */
  11. public function __construct(
  12. public array $plan,
  13. public string $provider,
  14. public string $model,
  15. public int $inputTokens,
  16. public int $outputTokens,
  17. /** A short message for the merchant. Only set for chat edits. */
  18. public ?string $reply = null,
  19. ) {}
  20. }