# Interface: TextGenerationStreamToken

## Properties

### id

• **id**: `number`

Token ID from the model tokenizer

#### Defined in[[id.defined-in]]

[inference/src/tasks/nlp/textGenerationStream.ts:9](https://github.com/huggingface/huggingface.js/blob/main/packages/inference/src/tasks/nlp/textGenerationStream.ts#L9)

___

### logprob

• **logprob**: `number`

Logprob

#### Defined in[[logprob.defined-in]]

[inference/src/tasks/nlp/textGenerationStream.ts:13](https://github.com/huggingface/huggingface.js/blob/main/packages/inference/src/tasks/nlp/textGenerationStream.ts#L13)

___

### special

• **special**: `boolean`

Is the token a special token
Can be used to ignore tokens when concatenating

#### Defined in[[special.defined-in]]

[inference/src/tasks/nlp/textGenerationStream.ts:18](https://github.com/huggingface/huggingface.js/blob/main/packages/inference/src/tasks/nlp/textGenerationStream.ts#L18)

___

### text

• **text**: `string`

Token text

#### Defined in[[text.defined-in]]

[inference/src/tasks/nlp/textGenerationStream.ts:11](https://github.com/huggingface/huggingface.js/blob/main/packages/inference/src/tasks/nlp/textGenerationStream.ts#L11)


<EditOnGithub source="https://github.com/huggingface/huggingface.js/blob/main/docs/inference/interfaces/TextGenerationStreamToken.md" />