BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
public_html
/
app.imagivibe.com
/
vendor
/
openai-php
/
client
/
src
/
Responses
/
Responses
📤 Upload
📝 New File
📁 New Folder
Close
Editing: CreateResponseReasoning.php
<?php declare(strict_types=1); namespace OpenAI\Responses\Responses; use OpenAI\Contracts\ResponseContract; use OpenAI\Responses\Concerns\ArrayAccessible; use OpenAI\Testing\Responses\Concerns\Fakeable; /** * @phpstan-type ReasoningType array{effort: ?string, generate_summary: ?string} * * @implements ResponseContract<ReasoningType> */ final class CreateResponseReasoning implements ResponseContract { /** * @use ArrayAccessible<ReasoningType> */ use ArrayAccessible; use Fakeable; private function __construct( public readonly ?string $effort, public readonly ?string $generate_summary, ) {} /** * @param ReasoningType $attributes */ public static function from(array $attributes): self { return new self( effort: $attributes['effort'] ?? null, generate_summary: $attributes['generate_summary'] ?? null, ); } /** * {@inheritDoc} */ public function toArray(): array { return [ 'effort' => $this->effort, 'generate_summary' => $this->generate_summary, ]; } }
Save
Cancel