AI Object
 
The AI Object exposes the following methods. Each has its own reference page.
 
Method
Purpose
Creates a conversation handle before asking.
Submits a question and returns a handle.
Attaches a file (PDF, Office document, image) to a handle.
Attaches a serialised ADODB recordset to a handle.
Removes all attachments from a handle.
Returns the number of files attached to a handle.
Returns the current status of a handle.
Returns the answer as decoded plain text.
Returns the answer in its raw transport form.
Returns the response identifier of a handle.
Returns the number of input tokens consumed.
Returns the number of output tokens produced.
Returns the error code of a failed handle.
Returns the error description of a failed handle.
Tests whether a handle is still open.
Closes one handle and triggers attachment cleanup.
Closes every open handle.