View source: R/message_retrieval.R
get_user_message | R Documentation |
Extracts the content of a user's message from an LLMMessage
object at a specific index.
get_user_message(.llm, .index = NULL)
last_user_message(.llm)
.llm |
An |
.index |
A positive integer indicating which user message to retrieve. Defaults to |
For convenience, last_user_message()
is provided as a wrapper to retrieve the
latest user message without specifying an index.
Returns the content of the user's message at the specified index. If no messages are found, returns NA_character_
.
last_user_message()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.