AIOBJECT
10.8A, PLBCMP GUI Only
The AIOBJECT object provides server side access to the OpenAI and Gemini AI models. This will allow PL/B applications to perform data analysis, text/image/audio generation, analyze images, and analyze files, and The declaration syntax of a AIOBJECT object is as follows:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Where:
label
Optional. A Data Label.
%
Optional. Denotes the item as being GLOBAL.
arraysize
Required. An integer decimal constant, CONST variable, or EQUATEd value indicating the number of array items.
^
Optional. Denotes the item as being a POINTER.
target
Required. The name of a previously defined data item of the same type.
Flags Affected: NONE
Note the following:
The AIOBJECT object is implicitly created when a method is executed.
The AIOBJECT object can be used in a DESTROY instruction.
Requires a runtime that contains WebView2 support. The supported executables are plbwin.exe, plbcon.exe, plbwebsrva.exe, and plbservera.exe.
Support files are located in plbai_html directory and must be located in the same directory as the runtime command.
The AIOBJECT supports the Initialize, Question, and Response methods.
The AIOBJECT supports the $Answer event. When this event occurs the Response method can be used to obtain any information returned.:
See Also: Object Definitions
![]() |