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.

Contents

Message contents

Operations

Get #

Get content by index

method : public : Get(index:Int) ~ Pair<String,String>

Parameters

NameTypeDescription
indexIntindex of content

Return

TypeDescription
Pair<String,String>content, user and message

Size #

Gets the size of contents

method : public : Size() ~ Int

Return

TypeDescription
Intsize of contents