# Interface: TextGenerationOutput

Text Generation Output.

Auto-generated from TGI specs.
For more details, check out
https://github.com/huggingface/huggingface.js/blob/main/packages/tasks/scripts/inference-tgi-import.ts.

## Indexable

▪ [property: `string`]: `unknown`

## Properties

### details

• `Optional` **details**: `TextGenerationOutputDetails`

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

tasks/dist/esm/tasks/text-generation/inference.d.ts:121

___

### generated\_text

• **generated\_text**: `string`

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

tasks/dist/esm/tasks/text-generation/inference.d.ts:122


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