Learn R Programming

gemini.R (version 0.12.0)

addHistory: Add history for chating context

Description

Add history for chating context

Usage

addHistory(history, role = NULL, item = NULL)

Value

The history of chat

Arguments

history

The history of chat

role

The role of chat: "user" or "model"

item

The item of chat: "prompt" or "output"