<br />

Options for formatting a text embedding request.

**Signature:**

```typescript
export declare interface TextFormatOptions 
```

## Properties

| Property | Modifiers | Type | Description |
|---|---|---|---|
| [type](https://developers.google.com/edge/api/mediapipe/js/tasks-text.textformatoptions.md.txt#textformatoptionstype) |   | TextEmbeddingType | The embedding type to generate for the given text. |
| [title](https://developers.google.com/edge/api/mediapipe/js/tasks-text.textformatoptions.md.txt#textformatoptionstitle) |   | string | The title of the text to be embedded. Only used for document embeddings. |
| [textRole](https://developers.google.com/edge/api/mediapipe/js/tasks-text.textformatoptions.md.txt#textformatoptionstextrole) |   | TextRole | The role of the text to be embedded. |

## TextFormatOptions.type

The embedding type to generate for the given text.

**Signature:**

```typescript
type: TextEmbeddingType;
```

## TextFormatOptions.title

The title of the text to be embedded. Only used for document embeddings.

**Signature:**

```typescript
title?: string;
```

## TextFormatOptions.textRole

The role of the text to be embedded.

**Signature:**

```typescript
textRole?: TextRole;
```