*/ final class ThreadRunResponseToolCodeInterpreter implements ResponseContract { /** * @use ArrayAccessible */ use ArrayAccessible; use Fakeable; private function __construct( public string $type, ) { } /** * Acts as static factory, and returns a new Response instance. * * @param array{type: 'code_interpreter'} $attributes */ public static function from(array $attributes): self { return new self( $attributes['type'], ); } /** * {@inheritDoc} */ public function toArray(): array { return [ 'type' => $this->type, ]; } }