Skip to main content

@elizaos/core v1.0.6 / v2 / DetokenizeTextParams

Interface: DetokenizeTextParams

Parameters for detokenizing text, i.e., converting a sequence of numerical tokens back into a string. This is the reverse operation of tokenization. This structure is used with AgentRuntime.useModel when the modelType is ModelType.TEXT_TOKENIZER_DECODE.

Properties​

tokens​

tokens: number[]

An array of numerical tokens to be converted back into text.

Defined in​

packages/core/src/specs/v2/types.ts:1414


modelType​

modelType: string

The model type used for detokenization, ensuring consistency with the original tokenization.

Defined in​

packages/core/src/specs/v2/types.ts:1416