df_llm_message {tidyllm} | R Documentation |
Convert a Data Frame to an LLMMessage Object
Description
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.
Usage
df_llm_message(.df)
Arguments
.df |
A data frame with at least two rows and columns |
Value
An LLMMessage
object representing the structured conversation.
See Also
Other Message Creation Utilities:
llm_message()
[Package tidyllm version 0.3.4 Index]