L’interface de VDS Renaissance est disponible en plusieurs langues. La documentation officielle est maintenue en anglais afin de garantir une référence unique, cohérente et toujours à jour.
AI
[VDS7]
Syntax
AI CONFIG, <provider>, <model> {, <endpoint>}
AI SYSTEM, <text>
AI KEY, <value>
AI RESET
AI JSON, <prompt>, <id>
AI STREAM, <prompt> {, EVENT}
AI SYSTEMSEALED, <sealed file>
Description
This command configures and drives the AI support. The actual call that returns a reply is the @AI function; this command sets things up and provides the structured-output call. The options are:
| AI CONFIG,... | Sets the provider and model for subsequent calls, with an optional endpoint override. The only provider at present is anthropic; it is assumed if <provider> is left empty. If the model is omitted, it is taken from the ANTHROPIC_MODEL environment variable (which the IDE can set from Options → AI configuration). |
| AI SYSTEM,... | Sets a persistent system instruction sent with every call. |
| AI KEY,... | Supplies the API key for this run. If omitted, the key is read from the provider's environment variable (ANTHROPIC_API_KEY). Never write a real key in a script. |
| AI RESET | Clears the conversation history, so the next @AI call starts a fresh conversation. |
| AI JSON,... | Sends <prompt> and parses the model's reply, as JSON, directly into the document with handle <id> (created by @NEW(JSON)). Surrounding prose or code fences in the reply are tolerated. OK is false if the call failed or the reply was not JSON. |
| AI STREAM,... | Starts a streamed reply and returns immediately, so the program stays responsive. Without EVENT, the script reads fragments with @AI(chunk) (pull); with EVENT, a background thread raises an AI event per fragment and AIEND at the end (push). See AI streaming. |
| AI SYSTEMSEALED,... | Like AI SYSTEM, but loads the system instruction from an encrypted (sealed) file, decrypted natively so a confidential prompt is never exposed in clear text. Used by the AI Wizard. |
OK
OK is false for AI JSON if the call failed (see @AI(error)) or the reply could not be read as JSON. The other options set OK true.
Example
ai config,anthropic,claude-opus-4-8
ai system,Reply only with valid JSON.
%h = @new(json)
ai json,List two primary colours as JSON {colours:[]},%h
info @json(string,%h,colours)