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