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:

 

(1)

[label]

AIOBJECT

[%|^][arraysize]

(2)

[label]

AIOBJECT

^,{target}

(3)

[label]

AIOBJECT

^(arraysize),({target}),...,({target})

 

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:

  1. The AIOBJECT object is implicitly created when a method is executed.

  2. The AIOBJECT object can be used in a DESTROY instruction.

  3. Requires a runtime that contains WebView2 support. The supported executables are plbwin.exe, plbcon.exe, plbwebsrva.exe, and plbservera.exe.

  4. Support files are located in plbai_html directory and must be located in the same directory as the runtime command.

  5. The AIOBJECT supports the Initialize, Question, and Response methods.

  6. 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

 



PL/B Language Reference