AIM. - Mistral AI

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIM. - Mistral AI >

AIM. - Mistral AI

AIM.Ask

Top


MiniRobotLanguage (MRL)

 

AIM.Ask

Send a prompt to Mistral AI and get a response

 

Intention

 

The AIM.Ask command sends a text prompt to the Mistral AI API and returns the generated response. This is the main command for interacting with Mistral's language models.

 

Syntax

 

AIM.Ask|$$Prompt[|$$RetVar]

 

P1 - $$Prompt - The text prompt to send to Mistral AI

P2 - $$RetVar (optional) - Variable to store the response

 

Example

 

' Set up Mistral AI

AIM.SetKey|your_mistral_api_key

AIM.SetModel|mistral-medium

 

' Ask a question

AIM.Ask|What is the capital of France?|$$Answer

DBP.$$Answer

 

Related Commands

 

- AIM.SetKey - Set API key

- AIM.SetModel - Set model