|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIG. - Google AI > 3. Configuration (Model, Context & Reasoning) > AIG.GetSystemPrompt |
MiniRobotLanguage (MRL)
AIG.GetSystemPrompt
Retrieve the currently configured System Instructions.
Intention
To read back the text currently set as the AI's "Persona" or System Instruction. Useful for debugging or verifying that the context was cleared or set correctly.
What is the GetSystemPrompt Command?
This command returns the string stored in the `AIG_SystemPrompt` global variable, which was previously set by `AIG.SetSystemPrompt`.
Example Usage
// Set a persona
AIG.SetSystemPrompt|You are a wise owl.
// Verify what is set
AIG.GetSystemPrompt|$$CurrentPersona
DBP. The current persona is: $$CurrentPersona
// Clear it
AIG.SetSystemPrompt|
AIG.GetSystemPrompt|$$Check
IVV.$$Check=
DBP. System prompt cleared.
EIF.
Syntax
AIG.GetSystemPrompt[|P1]
AIG.gsp[|P1]
Parameter Explanation
P1 - (Optional) Variable name to store the result. If omitted, the result is on the stack (Top-Of-Stack).
See also: