# AgentEvent.TextMessage


```
data class AgentEvent.TextMessage : AgentEvent
```

<br />

*** ** * ** ***

The text message generated by the agent for the user.

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/agent/AgentEvent.TextMessage#TextMessage(kotlin.String,kotlin.Boolean)(text: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, isPartial: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/agent/AgentEvent.TextMessage#isPartial()` Whether this event represents a partial streaming chunk. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/agent/AgentEvent.TextMessage#text()` The textual content emitted by the agent. |

## Public constructors

### TextMessage

```
TextMessage(text: String, isPartial: Boolean = false)
```

## Public properties

### isPartial

```
val isPartial: Boolean
```

Whether this event represents a partial streaming chunk.

### text

```
val text: String
```

The textual content emitted by the agent.