v2026.5.3
All Bundles
Bundle OpenAI API client. Supports Chat Completions (GPT-4o, o1, etc.), Embeddings, Image Generation (DALL-E), and function/tool calling. Set OPENAI_API_KEY environment variable before use. Compile with -lib openai.

FileQuery

File query

Operations

GetFile #

Get the file ID

method : public : GetFile() ~ API.OpenAI.File

Return

TypeDescription
Filefile ID

GetQuery #

Get the text query

method : public : GetQuery() ~ String

Return

TypeDescription
Stringtext query

GetRole #

Get the role

method : public : GetRole() ~ String

Return

TypeDescription
Stringrole

New # constructor

Constructor

New(query:String, file:API.OpenAI.File, role:String)

Parameters

NameTypeDescription
queryStringtext query
fileFileupload file
roleStringuser role

ToString #

String representation of the object

method : public : ToString() ~ String

Return

TypeDescription
Stringstring representation