| 12345678910111213141516171819202122232425262728 |
- <?php
-
- namespace App\StorePlan\Ai;
-
- /**
- * A checked store plan that came back from the AI, with what it cost.
- */
- final readonly class PlanResult
- {
- /**
- * @param array<string, mixed> $plan
- */
- public function __construct(
- public array $plan,
- public string $provider,
- public string $model,
- public int $inputTokens,
- public int $outputTokens,
- /** A short message for the merchant. Only set for chat edits. */
- public ?string $reply = null,
- /**
- * Store changes proposed in a chat edit, waiting for the merchant to confirm. See ChatActions.
- *
- * @var list<array{type: string, input: array<string, mixed>, summary: string}>
- */
- public array $actions = [],
- ) {}
- }
|