///
/// LLMMessage.swift
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2026 Marc Rousavy @ Margelo
///

import Foundation
import NitroModules

/**
 * Represents an instance of `LLMMessage`, backed by a C++ struct.
 */
public typealias LLMMessage = margelo.nitro.mlxreactnative.LLMMessage

public extension LLMMessage {
  private typealias bridge = margelo.nitro.mlxreactnative.bridge.swift

  /**
   * Create a new instance of `LLMMessage`.
   */
  init(role: String, content: String) {
    self.init(std.string(role), std.string(content))
  }

  var role: String {
    @inline(__always)
    get {
      return String(self.__role)
    }
    @inline(__always)
    set {
      self.__role = std.string(newValue)
    }
  }
  
  var content: String {
    @inline(__always)
    get {
      return String(self.__content)
    }
    @inline(__always)
    set {
      self.__content = std.string(newValue)
    }
  }
}
