17 lines
449 B
PHP
17 lines
449 B
PHP
<?php
|
|||
|
|
|
||
|
|
namespace App\Support\AiProviders;
|
||
|
|
|
||
|
|
final class AiGenerationResult
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* @param string $content Text or raw binary bytes, depending on $contentType.
|
||
|
|
* @param array<string, mixed> $raw The provider's decoded response, for debugging/metadata.
|
||
|
|
*/
|
||
|
|
public function __construct(
|
||
|
|
public readonly string $content,
|
||
|
|
public readonly string $contentType,
|
||
|
|
public readonly array $raw = [],
|
||
|
|
) {}
|
||
|
|
}
|