View source: R/message_retrieval.R
get_reply | R Documentation |
Extracts the plain text content of the assistant's reply from an LLMMessage
object.
Use get_reply_data()
for structured replies in JSON format.
get_reply(.llm, .index = NULL)
last_reply(.llm)
.llm |
An |
.index |
A positive integer indicating the index of the assistant reply to retrieve.
Defaults to |
This function is the core utility for retrieving assistant replies by index.
For convenience, last_reply()
is provided as a wrapper to retrieve the
latest assistant reply.
Returns a character string containing the assistant's reply, or NA_character_
if no reply exists.
get_reply_data()
, last_reply()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.