LiteRtLmModel

A Model implementation that uses the LiteRT-LM runtime to generate content.

Parameters

engine

The Engine to use for generation.

ownsEngine

Whether this model owns the engine and should close it when closed.

name

The name of the model.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
open val name: String

Functions

Link copied to clipboard
open fun close()
Link copied to clipboard
open fun generateContent(request: <Error class: unknown class>, stream: Boolean): Flow<<Error class: unknown class>>