AI Object
 
The AI Object exposes the following properties. Identification properties (SiteId, Username, CurrentAdmin) are normally set by the host and only need to be changed by a macro that processes work on behalf of a different administration.
 
Property
Type
Access
Description
SiteId
String
read / write
Identifier of the Tradium site, used for token accounting. Filled automatically on connect.
Username
String
read / write
The user on whose behalf the question is asked, used for token accounting.
CurrentAdmin
Integer
read / write
The administration number the question relates to. Optional; 0 means none.
Language
String
read / write
Answer language as a two-letter code ("nl", "en", "de", "fr"). Default "nl".
TimeoutSeconds
Long
read / write
HTTP timeout for service calls, in seconds. Clamped between 5 and 600. Default 120.
LastErrorCode
AIErrorCode
read only
Error code of the most recent submission failure — valid when Ask returned 0. See GetErrorCode for the code list.
LastErrorMessage
String
read only
Human-readable description belonging to LastErrorCode.
ConversationCount
Long
read only
The number of conversation handles currently open on the object.
 
Note. LastErrorCode and LastErrorMessage describe failures to submit a question. Failures that happen after a successful submission (during asynchronous processing) are read per handle with GetErrorCode and GetErrorMessage