|
<< 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)
!Output Formatting and Delivery
Managing AIX Response Presentation
Intention
Output Formatting and Delivery: Customizing Response Handling
The Output Formatting and Delivery category includes commands to control how AIX presents and delivers responses from the Grok API, such as copying content to the clipboard or managing output formats.
This allows users to tailor the output to their workflow needs.
It’s part of the AIX - Grok / X - API suite.
This category provides commands to manage the presentation and delivery of AI responses, including enabling or disabling clipboard output (via AIX_ClipboardOutput) and potentially other output mechanisms.
It enhances usability by allowing users to decide how and where responses are made available after processing.
Managing output formatting and delivery is important for:
•Efficiency: Enables quick access to responses via clipboard.
•Flexibility: Allows customization of output delivery methods.
•Control: Prevents unintended overwrites of clipboard content.
•Integration: Supports workflow automation with external applications.
Use commands in this category to configure how AI responses are delivered after execution.
For example, enable clipboard output with AIX.SetClipboardOutput set to 1, then verify the setting with AIX.GetClipboardOutput. This configuration applies to responses generated by AIX.Ask or AIX.AskVision.
Commands in This Category
The following commands are included:
•AIX.SetClipboardOutput - Enable or disable copying responses to the clipboard.
•AIX.GetClipboardOutput - Retrieve the current clipboard output setting.
Example Usage
AIX.SetKey|""your_api_key_here""
AIX.SetModel|""grok-3""
AIX.SetClipboardOutput|1
AIX.Ask|""What is the capital of France?""
DBP.Response (""Paris"") copied to clipboard
AIX.SetClipboardOutput|0
AIX.Ask|""What is the next capital?""
DBP.Response (""Berlin"") not copied
This example sets up the API key and model, enables clipboard output for the first query, and disables it for the second, demonstrating control over response delivery.
Illustration
┌────────────────────┐
│ Output Delivery │
├────────────────────┤
│ Input: AI Response │
│ Process: Format │
│ Output: Clipboard │
│ or Other │
└────────────────────┘
A representation of how responses are formatted and delivered (e.g., to clipboard).
Remarks
- Clipboard output is limited to 1MB to prevent performance issues, as enforced by the AIX_ChatCompletion function.
- Settings apply only to responses generated by AIX.Ask or AIX.AskVision.
Limitations
- Only supports clipboard delivery at this time; additional output methods may be added in future updates.
- Large responses exceeding 1MB will be truncated or not copied to the clipboard.
See also:
• AIX.Ask