Set History Dimension

<< Click to Display Table of Contents >>

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

Set History Dimension

AIC.Set History Dimension

Previous Top Next


MiniRobotLanguage (MRL)

 

AIC.Set History Dimension
Set the Number of Entries that will be stored in the Index-Array-based history.

 

clip0687

 

Intention

 

The AIC.Set History Dimension command is designed to manage the size of your system's history memory.
It provides you with the ability to control the number of history events that can be stored, reset the history memory to its default size,
or simply retrieve the current size of the history memory. An optional second parameter can be used to return the history array size.

Maximum size is actually 32768 Steps.

 

Syntax:

 

AIC.Set History Dimension|<value>|<variable for return>

 

Example Usage:

 

' Will reset the size of the history to its default size which is actually 1024 Steps.

AIC.Set History Dimension|-1|$$RET

 

' Will not change the size of the history just return the current value.

AIC.Set History Dimension|0|$$RET

 

' Will set the size of the history to 20024 Steps.
' Return Value will be on TOS.

AIC.Set History Dimension|20024

 

' All three variants will return the current size of the History-Array.

 

ENR.

 

 

 

Syntax

 

 

AIC.Set History Dimension|P1[|P2]

AIC.SHD|P1[|P2]

 

 

Parameter Explanation

 
P1 - Variable with any number between -1 and 32767. Hereby is:

  -1 - will reset the History Array to its default size.

 0 - will not change the size just return the current size

>0 - will set the size of the History Array to that number, currently the maximum number is 32767

 

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

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

' We can alsu

AIC.Set History Dimension|120

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

FOR.$$LOP|1|2

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

 AIC.ghf|$$LOP|$$ANS|$$QUE

 DBP.We asked: $$QUE

 DBP.and got this answer: $$ANS

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

NEX.

ENR.

 

 

Remarks

-

 

Limitations:

 

Maximum size is actually 32768 Steps.

 

 

See also:

 

  Set_Key

  Ask_Chat

  Ask_Completion