AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

PlanResult.php 785B

12345678910111213141516171819202122232425262728
  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. * Store changes proposed in a chat edit, waiting for the merchant to confirm. See ChatActions.
  21. *
  22. * @var list<array{type: string, input: array<string, mixed>, summary: string}>
  23. */
  24. public array $actions = [],
  25. ) {}
  26. }