last_output.RdConvenience for extracting the last model output from a Chat object.
last_output(x)
last_message(x, role = NULL)For last_output, the converted output (not necessarily the raw
response). For the lower level last_message, a ChatMessage
object containing the raw and converted output, among other things.
predict is a convenience wrapper
that uses last_output.