Skip to main content

@elizaos/core v1.0.0-beta.51 / 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.

Extends​

Properties​

tokens​

tokens: number[]

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

Defined in​

packages/core/src/types.ts:1365


modelType​

modelType: string

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

Defined in​

packages/core/src/types.ts:1367


runtime​

runtime: IAgentRuntime

The agent runtime for accessing services and utilities

Inherited from​

BaseModelParams.runtime

Defined in​

packages/core/src/types.ts:1625