Set Delimiter QS

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command > AI - History >

Set Delimiter QS

AIC.Set Delimiter QS

Previous Top Next


MiniRobotLanguage (MRL)

 

AIC.Set Delimiter QS
Set the delimiters for the Prompts in the history.

 

clip0673

 

Intention

 

The AIC.Set Delimiter QS command in the Smart-Package Robot (SPR) allows users to set the delimiters that are used in the Text-History.
This can make it easier to parse the history.

 

Syntax:

 

AIC.Set Delimiter QS|<delimiter start>|<delimiter end>

 

Parameters:

<delimiter start>: Any Text or string that makes it easy for you to parse the History.

<delimiter end>: Any Text or string that makes it easy for you to parse the History.

 

Example Usage:

 

AIC.Set Delimiter AN|<Answer_Start:>|<Answer_End:>

AIC.Set Delimiter QS|<Prompt_Start:>|<Prompt_End:>

ENR.

 

This example will enclose the "Answers" between <Answer_Start:> and <Answer_End:>

   The Prompts will be enclosed between <Prompt_Start:> and <Prompt_End:>

in the History that you can get using the "AIC.Get History" Command.

 

 

 

Syntax

 

 

AIC.Set Delimiter QS[|P1][|P2]

AIC.SDQ[|P1][|P2]

 

 

Parameter Explanation

 
P1 - opt. Variable with the delimiter for the "Start of the Question". If omitted, the value is been set to $crlf$.

P2 - opt. Variable with the delimiter for the "End of the Question". If omitted, the value is been set to $crlf$.

 

 

Example

 

'*****************************************************

' EXAMPLE 1: AIC.-Commands

'*****************************************************

AIC.Set Delimiter AN|<Antwort_Start:>|<Antwort_End:>

AIC.Set Delimiter QS|<Prompt_Start:>|<Prompt_End:>

AIL.Set Number|1

AIL.Set Temperature|$$LR0

AIL.Set Model|Hermes

$$TXT=Hello! Please tell me what 3+4 is.

AIL.Ask GPT4All|$$TXT|$$REA

 

$$TXT=Hello! Please tell me what 5+6 is.

AIL.Ask GPT4All|$$TXT|$$REA

DBP.-------------

AIC.ghi|$$REB

DBP.The complete history was:

DBP.$$REB

DBP.-------------

ENR.

 

 

Remarks

-

 

Limitations:

-

 

 

See also:

 

  Set_Key

  Ask_Chat

  Ask_Completion