fromMessages

abstract fun fromMessages(messages: List<Message>): T

Create an object of the desired type from messages.

Return

the created object of type T

Parameters

messages

the conversation messages to send to the LLM