addHistory {gemini.R} | R Documentation |
Add history for chating context
addHistory(history, role = NULL, item = NULL)
history |
The history of chat |
role |
The role of chat: "user" or "model" |
item |
The item of chat: "prompt" or "output" |
The history of chat