Learn R Programming

tidyllm (version 0.2.0)

last_reply: Get the Last Assistant Reply as Text

Description

A wrapper around get_reply() to retrieve the most recent assistant text reply.

Usage

last_reply(.llm)

Value

Returns the content of the assistant's reply at the specified index, based on the following conditions:

Arguments

.llm

A LLMMessage object.