# Interface: TextGenerationStreamPrefillToken

## Properties

### id

• **id**: `number`

Token ID from the model tokenizer

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

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

___

### logprob

• `Optional` **logprob**: `number`

Logprob
Optional since the logprob of the first token cannot be computed

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

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

___

### text

• **text**: `string`

Token text

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

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


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