# AgentEvent.TextMessage

# AgentEvent.TextMessage


```
public final class AgentEvent.TextMessage implements AgentEvent
```

<br />

*** ** * ** ***

The text message generated by the agent for the user.

## Summary

| ### Public constructors |
|---|
| `TextMessage(@NonNull String text, boolean isPartial)` |

| ### Public methods |
|---|---|
| `final @NonNull String` | `getText()` The textual content emitted by the agent. |
| `final boolean` | `isPartial()` Whether this event represents a partial streaming chunk. |

## Public constructors

### TextMessage

```
public TextMessage(@NonNull String text, boolean isPartial)
```

## Public methods

### getText

```
public final @NonNull String getText()
```

The textual content emitted by the agent.

### isPartial

```
public final boolean isPartial()
```

Whether this event represents a partial streaming chunk.