Skip to main content

Module question_flow

Module question_flow 

Source
Expand description

A short sequence of questions an agent asks before it acts.

One question at a time, each a single choice, with the place in the sequence stated plainly and a way past a question that does not apply. Where crate::approval::ApprovalCard asks for one decision about something already proposed, this gathers what the agent needs in order to propose anything at all.

Controlled, like the rest of the library: the application owns the step and every answer, and this reports what a person asked for. Nothing here advances on its own — an application that wants to record an answer and move on does both when the answer arrives.

Structs§

Question
One question, and the answers it will accept.
QuestionFlow
A sequence of single-choice questions, asked one at a time.

Enums§

QuestionFlowEvent
What a question flow reports.