tokenize
Convert UTF-8 text into individual tokens using a deterministic tokenizer model. Returns the resolved model, token strings, and token count for exact analysis without storing input.
Instructions
Tokenize UTF-8 text into individual tokens with a supported deterministic Algenta tokenizer model (default text.tokenizer; call list_models for every supported model id). Use this when you need the token strings themselves; call count_tokens when you only need the number. Read-only and deterministic: the same input and model always return the same tokens, and nothing is stored. Returns the resolved model id, its tokenizer_kind, the tokens array, and token_count. An unsupported model id fails with model_not_supported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | UTF-8 text to tokenize. | |
| model | No | Tokenizer model id from list_models. | text.tokenizer |