A custom prompt's three steps: render the frame for an action,
process one input into an action, clear the previous frame.
Attributes#
| Attribute | Type | Description |
|---|---|---|
render | Callable[[S, Action[S, Out]], Effect[str, Never, PromptEnvironment]] | |
process | Callable[[I_contra, S], Effect[Action[S, Out], Never, PromptEnvironment]] | |
clear | Callable[[S, Action[S, Out]], Effect[str, Never, PromptEnvironment]] |
Functions#
__init__#
__init__(render, process, clear) -> None| Parameter | Type | Description |
|---|---|---|
render | Callable[[S, Action[S, Out]], Effect[str, Never, PromptEnvironment]] | |
process | Callable[[I_contra, S], Effect[Action[S, Out], Never, PromptEnvironment]] | |
clear | Callable[[S, Action[S, Out]], Effect[str, Never, PromptEnvironment]] |