reply

abstract fun reply(instructions: String, turns: List<AIConversationTurn>): Flow<String>

Streams the answer to the last of turns, the person's question.

Return

Each emission is the whole answer so far. Cancelling the collection stops the model.

Parameters

instructions

How the model should answer: who it is, what it can't do.

turns

The conversation so far, oldest first, ending with the person's question.