renderPreface method

Future<String> renderPreface()

Renders the conversation preface into a string.

Implementation

Future<String> renderPreface() {
  final handle = _handle;
  if (handle == null) {
    throw const LiteRtLmException('Conversation is already disposed.');
  }
  return LiteRtLmNativeRuntime.instance.renderPreface(handle);
}