UserInteractionGateway

Abstraction over the user-interaction channel used by AskUserTool and TellUserTool.

Gateway implementations are thin wrappers around the host channel (stdin / stdout on JVM, system services on mobile, mocks in tests). No business logic in implementations — they only carry I/O.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun ask(request: String): String

Prompt the user with request and return their textual response.

Link copied to clipboard
abstract suspend fun tell(message: String)

Display message to the user without expecting a response.