AgentTurn

sealed interface AgentTurn(source)

One turn of the conversation:

  • Do the assistant wants to perform a plan,

  • Say the assistant spoke,

  • Ask the assistant needs the user to disambiguate — candidates are the apps it's unsure between. The UI shows them as buttons AND re-opens the mic so the user can just say "yes"/"no"; the answer resolves against pending state.

Inheritors

Types

Link copied to clipboard
data class Ask(val text: String, val candidates: List<AppEntry>) : AgentTurn
Link copied to clipboard
data class Do(val plan: Plan) : AgentTurn
Link copied to clipboard
data class Say(val text: String) : AgentTurn