# AgentEvent.TextMessage

# AgentEvent.TextMessage


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

<br />

*** ** * ** ***

The text message generated by the agent for the user.

## Summary

| ### Public constructors |
|---|
| `TextMessage(text: String, isPartial: Boolean)` |

| ### Public properties |
|---|---|
| `Boolean` | `isPartial` Whether this event represents a partial streaming chunk. |
| `String` | `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.