df_llm_message | R Documentation |
This function converts a data frame into an LLMMessage
object representing a conversation history.
The data frame must have specific columns (role
and content
), with each row representing a message.
df_llm_message(.df)
.df |
A data frame with at least two rows and columns |
An LLMMessage
object representing the structured conversation.
llm_message()
Other Message Creation Utilities:
llm_message()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.