| 1234567891011121314151617181920 |
- <?php
-
- namespace App\Ai;
-
- /**
- * One question for an AI model. The same shape for every provider.
- */
- final readonly class AiRequest
- {
- public function __construct(
- /** The task name from config/ai.php, such as "generate" or "edit". */
- public string $task,
- public string $model,
- /** Standing instructions: who the AI is and the rules it must follow. */
- public string $system,
- /** The actual request. */
- public string $prompt,
- public int $maxTokens,
- ) {}
- }
|