AIAgentActivity

data class AIAgentActivity(val state: AIAgentActivity.State, val text: String? = null)

What the agent says it is doing while it answers, besides what its reply shows, such as thinking or checking external sources. Stream Chat's AI indicator events carry it:

feed.update(activity = AIAgentActivity(AIAgentActivity.State(event.aiState), text = event.aiMessage))

Parameters

state

What the agent is doing.

text

What it says about it, such as "Searching the web", or why it couldn't answer.

Constructors

Link copied to clipboard
constructor(state: AIAgentActivity.State, text: String? = null)

Types

Link copied to clipboard
value class State(val rawValue: String)

What the agent is doing. It is an open set: compare against the states you know. Their raw values are those of Stream Chat's AI indicator.

Properties

Link copied to clipboard
Link copied to clipboard
val text: String?