AIC. - Artificial Intelligence Command

<< Click to Display Table of Contents >>

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

AIC. - Artificial Intelligence Command

AIC.GetFinish

Top


MiniRobotLanguage (MRL)

 

AIC.GetFinish

DESCRIPTION

 

Intention

 

Retrieves the finish reason from the last AI response. The finish reason indicates why the AI stopped generating text - common values include "stop" (natural completion), "length" (token limit reached), "content_filter" (content filtered), or null (incomplete).

 

Syntax

 

AIC.GetFinish

 

Example

 

' Check why the AI stopped generating

AIC.Chat|"Write a long story"

reason = AIC.GetFinish

If reason = "length" Then Print "Token limit reached"