|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command > AIC. - Artificial Intelligence Command |
AIC.AddToHistory |
Top |
MiniRobotLanguage (MRL)
AIC.AddToHistory
Add entry to conversation history
Intention
The AIC.AddToHistory command manually adds a message to the conversation history buffer. Use this to inject context or previous messages before making an AI request with history.
Syntax
AIC.AddToHistory|$$Role|$$Content
P1 - $$Role - Message role (user, assistant, system)
P2 - $$Content - The message content
Example
' Set up conversation context
AIC.AddToHistory|system|You are a helpful coding assistant
AIC.AddToHistory|user|What is Python?
AIC.AddToHistory|assistant|Python is a programming language
' Now ask with history context
AIC.AskWithHistory|What are its main features?|$$Answer
DBP.$$Answer
Related Commands
- AIC.AskWithHistory - Ask with history
- AIC.AskHistoryClipboard - History from clipboard
- AIC.SetHistDim - Set history size