AgentEvent.TextMessage

public final class AgentEvent.TextMessage implements AgentEvent


The text message generated by the agent for the user.

Summary

Public constructors

TextMessage(@NonNull String text, boolean isPartial)

Public methods

final @NonNull String

The textual content emitted by the agent.

final boolean

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.