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
/
Assistants
📤 Upload
📝 New File
📁 New Folder
Close
Editing: AssistantResponseResponseFormatText.php
<?php declare(strict_types=1); namespace OpenAI\Responses\Assistants; use OpenAI\Contracts\ResponseContract; use OpenAI\Responses\Concerns\ArrayAccessible; use OpenAI\Testing\Responses\Concerns\Fakeable; /** * @implements ResponseContract<array{type: string}> */ final class AssistantResponseResponseFormatText implements ResponseContract { /** * @use ArrayAccessible<array{type: string}> */ use ArrayAccessible; use Fakeable; private function __construct( public string $type, ) {} /** * Acts as static factory, and returns a new Response instance. * * @param array{type: 'text'} $attributes */ public static function from(array $attributes): self { return new self( $attributes['type'], ); } /** * {@inheritDoc} */ public function toArray(): array { return [ 'type' => $this->type, ]; } }
Save
Cancel