|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIX. - Grok / X - API > AIX - Artificial Intelligence and X Platform Utility |
MiniRobotLanguage (MRL)
!Core Operations
Executing AIX AI Tasks
Intention
Core Operations: Performing AI Interactions
The Core Operations category encompasses commands that execute the primary AI tasks within the AIX system, such as sending text-based questions, vision-based queries, and retrieving chat completions from the Grok API.
These commands form the backbone of interacting with the AI, leveraging configured settings to produce meaningful responses.
It’s part of the AIX - Grok / X - API suite.
This category includes commands that facilitate direct interaction with the Grok AI, supporting both text and image-based inputs through the AIX_ChatCompletion function.
It handles the construction of API requests, sending them to the configured endpoint, and processing the responses, making it the central hub for AI-driven operations in AIX.
Executing core operations is essential for:
•Interaction: Enables querying the AI with text or image data.
•Versatility: Supports multiple input types, including vision capabilities.
•Automation: Facilitates scripted interactions for repetitive tasks.
•Efficiency: Streamlines the process of obtaining AI-generated content.
Use commands in this category to perform AI queries after configuring the necessary settings (e.g., API key, model, endpoint).
For example, set the API key with AIX.SetKey, and then ask a question with AIX.Ask or AIX.AskVision. Optionally, copy the result to the clipboard using AIX.SetClipboardOutput.
Commands in This Category
The following commands are included:
•AIX.Ask - Ask a text-based question to the AI.
•AIX.AskVision - Ask a vision-based question with an image.
Example Usage
AIX.Initialize
AIX.SetKey|""your_api_key_here""
AIX.SetModel|""grok-3""
AIX.SetClipboardOutput|1
AIX.Ask|""What is artificial intelligence?""
DBP.Response copied to clipboard
This example initializes the system, sets the API key and model, enables clipboard output, and asks a question, with the response copied to the clipboard.
Illustration
┌────────────────────┐
│ Core Operation │
├────────────────────┤
│ Input: Text/Image │
│ Process: API Call │
│ Output: Response │
└────────────────────┘
A simplified workflow of executing a core AI operation.
Remarks
- Commands rely on prior configuration (e.g., API key, model) for successful execution.
- Vision support requires a Base64-encoded image as an optional parameter.
Limitations
- Requires a valid API key and configured endpoint to function.
- Large image data may exceed API limits or processing capacity.
See also: