generate

suspend fun generate(prompt: String): String?(source)

One-shot generation over a full prompt.


suspend fun generate(prefix: String, suffix: String): String?(source)

Prefix-cached generation: prefix is the stable preamble (prefilled once and reused), suffix is the per-turn variable part. Falls back to one-shot over prefix + suffix if the session path throws.