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
/
Chat
📤 Upload
📝 New File
📁 New Folder
Close
Editing: CreateStreamedResponseFunctionCall.php
<?php declare(strict_types=1); namespace OpenAI\Responses\Chat; /** * @deprecated */ final class CreateStreamedResponseFunctionCall { private function __construct( public readonly ?string $name, public readonly ?string $arguments, ) {} /** * @param array{name?: ?string, arguments?: ?string} $attributes */ public static function from(array $attributes): self { return new self( $attributes['name'] ?? null, $attributes['arguments'] ?? null, ); } /** * @return array{name?: string, arguments?: string} */ public function toArray(): array { $data = []; if (! is_null($this->name)) { $data['name'] = $this->name; } if (! is_null($this->arguments)) { $data['arguments'] = $this->arguments; } return $data; } }
Save
Cancel