> ## 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

# TextContent

Plain text content for messages.

```python theme={null}
from adaline_api.models.text_content import TextContent
```

***

## Fields

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

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

***

## Example

```python theme={null}
from adaline_api.models.text_content import TextContent
from adaline_api.models.message_content import MessageContent

text = TextContent(modality="text", value="Hello, how are you?")

content = MessageContent(actual_instance=text)

# Access fields
print(text.modality)  # 'text'
print(text.value)     # 'Hello, how are you?'
```

**JSON**:

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

***

## Related

* [MessageContent](/docs/reference/sdk/v2/python/types/MessageContent) — union wrapper for all content types
* [PromptMessage](/docs/reference/sdk/v2/python/types/PromptMessage) — chat message containing content arrays
