> Documentation index: https://firebase.google.com/docs/reference/js/llms.txt

Content part interface if the part represents a text string.

**Signature:**

```typescript
export interface TextPart 
```

## Properties

| Property | Type | Description |
|---|---|---|
| [speechMetadata](https://firebase.google.com/docs/reference/js/ai.textpart.md.txt#textpartspeechmetadata) | [SpeechMetadata](https://firebase.google.com/docs/reference/js/ai.speechmetadata.md.txt#speechmetadata_interface) | ***(Public Preview)*** Structured speech metadata used to guide speech generation for this text. |
| [text](https://firebase.google.com/docs/reference/js/ai.textpart.md.txt#textparttext) | string |   |
| [thought](https://firebase.google.com/docs/reference/js/ai.textpart.md.txt#textpartthought) | boolean |   |
| [type](https://firebase.google.com/docs/reference/js/ai.textpart.md.txt#textparttype) | 'text' |   |

## TextPart.speechMetadata

> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Structured speech metadata used to guide speech generation for this text.

**Signature:**

```typescript
speechMetadata?: SpeechMetadata;
```

## TextPart.text

**Signature:**

```typescript
text: string;
```

## TextPart.thought

**Signature:**

```typescript
thought?: boolean;
```

## TextPart.type

**Signature:**

```typescript
type: 'text';
```