We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new messages for inputs and use them in IOStream classes. E.g.
IOStream
class InputMessageRequest(BaseMessage): pass class InputMessageTextRequest(InputMessageRequest): prompt: str = "" class InputMessagePasswordRequest(InputMessageRequest): prompt: str = "" class InputMessageSingleChoiceRequest(InputMessageRequest): prompt: str = "" choices: list[str] class InputMessageMultipleChoiceResponse(InputMessageResponse): prompt: str = "" choices: list[str] class InputMessageResponse(BaseMessage): request: InputMessageRequest class InputMessageTextResponse(InputMessageResponse): text: str class InputMessagePasswordResponse(InputMessageResponse): password: str class InputMessageSingleChoiceResponse(InputMessageResponse): choice: str class InputMessageMultipleChoiceResponse(InputMessageResponse): choice: str class InputStream(Protocol): def request_input(self, InputMessageRequest) -> InputMessageResponse: ... # pragma: no cover
The text was updated successfully, but these errors were encountered:
davorrunje
Successfully merging a pull request may close this issue.
Add new messages for inputs and use them in
IOStream
classes. E.g.The text was updated successfully, but these errors were encountered: