> ## Documentation Index
> Fetch the complete documentation index at: https://www.adaline.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# TextContent

> Plain text content type for prompt messages.

# TextContent

Plain text content for messages in LLM conversations.

## Import

```typescript theme={null}
import type { TextContent } from '@adaline/api';
```

## Type Definition

```typescript theme={null}
interface TextContent {
  modality: 'text';
  value: string;
}
```

## Fields

<ParamField body="modality" type="string" required>
  Must be `"text"`.
</ParamField>

<ParamField body="value" type="string" required>
  The text content string.
</ParamField>

***

## Example

```typescript theme={null}
import type { TextContent, PromptMessage } from '@adaline/api';

const text: TextContent = {
  modality: 'text',
  value: 'Hello, how are you?'
};

const message: PromptMessage = {
  role: 'user',
  content: [text]
};
```

**JSON**:

```json theme={null}
{
  "modality": "text",
  "value": "Hello, how are you?"
}
```

***

## Related

* [MessageContent](/docs/reference/sdk/v2/typescript/types/MessageContent) — union type that includes `TextContent`
* [PromptMessage](/docs/reference/sdk/v2/typescript/types/PromptMessage) — uses `MessageContent[]` as its `content` field
