v2026.5.3
All Bundles
Bundle ONNX Runtime inference library for running pre-trained models. Supports object detection (YOLO), image classification (ResNet), segmentation (DeepLab), pose estimation (OpenPose), face recognition, and Phi-3 text generation. Compile with -lib onnx.

Phi3Result

Phi-3 / SLM generation result containing output token IDs

Operations

GetTokenCount #

Gets the number of generated tokens

method : public : GetTokenCount() ~ Int

Return

TypeDescription
Inttoken count

GetTokens #

Gets the generated token IDs (excluding prompt tokens)

method : public : GetTokens() ~ Int[]

Return

TypeDescription
Intarray of generated token IDs

Example

result := session->Generate(ids, 128, 0.0, eos);
text := tokenizer->Decode(result->GetTokens());
text->PrintLine();

ToString #

Get string representation

method : public : ToString() ~ String

Return

TypeDescription
Stringstring representation