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.GetRole

Top


MiniRobotLanguage (MRL)

 

AIC.GetRole

DESCRIPTION

 

Intention

 

Retrieves the role of the last message in the conversation. In AI conversations, roles are typically "system" (instructions), "user" (human input), or "assistant" (AI response). This command helps identify the source of the last message.

 

Syntax

 

AIC.GetRole

 

Example

 

' Get the role of the last message

AIC.Chat|"Hello"

role = AIC.GetRole

' Returns: "assistant"