generateContentStream method
Generates content from the given input data and streams text chunks.
Implementation
Stream<String> generateContentStream(List<InputData> inputData) {
final handle = _handle;
if (handle == null) {
return Stream.error(
const LiteRtLmException('Session is already disposed.'),
);
}
return LiteRtLmNativeRuntime.instance.generateSessionContentStream(
handle,
inputData,
);
}