View source: R/message_retrieval.R
get_reply_data | R Documentation |
Parses the assistant's reply as JSON and returns the corresponding structured data. If the reply is not marked as JSON, attempts to extract and parse JSON content from the text.
get_reply_data(.llm, .index = NULL)
last_reply_data(.llm)
.llm |
An |
.index |
A positive integer indicating the index of the assistant reply to retrieve.
Defaults to |
For convenience, last_reply_data()
is provided as a wrapper to retrieve the
latest assistant reply's data.
Returns the parsed data from the assistant's reply, or NULL
if parsing fails.
get_reply()
, last_reply_data()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.