//clika-runtime/io.clika.modelverse/TextGenerationPipeline
TextGenerationPipeline
[common]
class TextGenerationPipeline : Pipeline
Text generation over a GenerativeModel: a prompt answers the generated text (the prompt and the reply together when returnFullText, the reply alone otherwise), a conversation answers its turns plus the assistant's.
Properties
| Name | Summary |
|---|---|
| model | [common] open override val model: GenerativeModel The loaded model the pipeline runs. |
| task | [common] val task: String The task the pipeline serves, in transformers' spelling. |
Functions
| Name | Summary |
|---|---|
| close | [common] open fun close(): <Error class: unknown class> |
| invoke | [common] operator fun invoke(textInputs: String, config: GenerationConfig = model.capabilities.defaults, returnFullText: Boolean = true): String operator fun invoke(conversation: List<ChatMessage>, config: GenerationConfig = model.capabilities.defaults, returnFullText: Boolean = true): List<ChatMessage> |