Kotlin API usage examples for LLM, VLM, Embedder, and Reranker wrappers.
wrapper.close()
or use use { ... }
for resource cleanup:
vlm.close()
or use use { ... }
for resource cleanup:
embedder.close()
or use use { ... }
for resource cleanup:
reranker.close()
or use use { ... }
for resource cleanup:
nCtx
: Int
nThreads
: Int
nThreadsBatch
: Int
nBatch
: Int
nUBatch
: Int
nSeqMax
: Int
maxTokens
: Int
stopWords
: Array<String>? = null
stopCount
: Int
nPast
: Int
samplerConfig
: SamplerConfig
imagePaths
: Array<String>
imageCount
: Int
audioPaths
: Array<String>
audioCount
: Int
ttftMs
: Double
totalTokens
: Int
stopReason
: String?
tokensPerSecond
: Double
totalTimeMs
: Double
promptTimeMs
: Double
decodeTimeMs
: Double
promptTokens
: Int
generatedTokens
: Int