chat_history.character: Method for 'chat_history()' when the input is a single string

View source: R/chat_history.R

chat_history.characterR Documentation

Method for chat_history() when the input is a single string

Description

Creates a chat_history object from a single string.

Usage

## S3 method for class 'character'
chat_history(chat_history)

Arguments

chat_history

A single string

Value

A valid chat history data.frame (of class chat_history), with the 'role' set to 'user' and the 'content' set to the input string


tidyprompt documentation built on April 4, 2025, 12:24 a.m.