interface input-text {
use core.{queue};
use allocate.{object-id}; // Import object ID type for memory references
// Converts input tokens into embeddings at specified positions
embed-text: func(
queue: borrow<queue>, // Queue to execute the embedding operation
emb-ids: list<object-id>, // Output object IDs where embeddings will be written
tokens: list<u32>, // Token IDs to embed
positions: list<u32> // Positional indices for each token
);
}