processText

fun processText(text: String): List<JsonObject>(source)

Process messages given as text: JSONL, concatenated or pretty-printed JSON objects, or a JSON array of messages. Incomplete trailing input (a message still streaming) is left out.