generateContent method

Future<String> generateContent(
  1. List<InputData> inputData
)

Generates content from the given input data.

Implementation

Future<String> generateContent(List<InputData> inputData) {
  final handle = _handle;
  if (handle == null) {
    throw const LiteRtLmException('Session is already disposed.');
  }
  return LiteRtLmNativeRuntime.instance.generateSessionContent(
    handle,
    inputData,
  );
}