Tool Loop Agent Action
Actions the host dispatches to drive the agent. Mirrors the Action sealed type a Compose ViewModel exposes — the agent is the "model" of an MVI loop.
Since
0.3.0-beta01
Inheritors
Types
Link copied to clipboard
Approve a tool call that paused the loop. Resumes the agent.
Link copied to clipboard
Cancel the in-flight stream without erasing history.
Link copied to clipboard
data class DenyToolCall(val toolCallId: String, val reason: String? = null) : ToolLoopAgentAction<Nothing>
Deny a tool call. Resumes the agent with the denial fed back to the model.
Link copied to clipboard
Drop history + abort any in-flight stream.
Link copied to clipboard
data class UserSubmitPrompt<TContext>(val text: String, val context: TContext? = null) : ToolLoopAgentAction<TContext>
New user turn. Cancels any in-flight stream and starts a fresh one.