chat: Continue a Conversation

View source: R/chat.R

chatR Documentation

Continue a Conversation

Description

Add a message to an existing conversation and get a response.

Usage

chat(conversation, message, ...)

Arguments

conversation

An hf_conversation object from hf_conversation().

message

Character string. The user message.

...

Additional parameters passed to the model.

Value

Updated conversation object with new messages in history.

Examples

## Not run: 
convo <- hf_conversation()
convo <- chat(convo, "Tell me a joke")

## End(Not run)

huggingfaceR documentation built on Aug. 30, 2026, 1:06 a.m.