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)
An LLMMessage
object representing the structured conversation.
A data frame with at least two rows and columns role
and content
.
The role
column should contain "user", "assistant", or "system". The content
column should contain the corresponding message text.
llm_message()
Other Message Creation Utilities:
llm_message()