See: Description
Interface | Description |
---|---|
DialogueChannel<I extends InputTurn,O extends OutputTurn> |
Core concept of Rivr, a
DialogueChannel is the interface between the
Dialogue and the controller (such as the DialogueServlet ). |
FirstTurn |
A base interface for the type of turn used to start dialogues.
|
InputTurn |
A base interface for the type of turn representing input from the controller.
|
LastTurn |
A base interface for the type of turn representing the result of a dialogue.
|
OutputTurn |
A base interface for the type of turn representing output to the controller.
|
Exception | Description |
---|---|
Timeout |
Exception thrown when
DialogueChannel exceeds maximum time allowed to
perform an operation. |
The DialogueChannel
is the interface
between the dialogue and the controller (e.g. servlet, unit test). The
dialogue sends an OutputTurn
to the
DialogueChannel
and gets an
InputTurn
in return. The dialogue starts
with a FirstTurn
and must terminate with
a LastTurn
The DialogueChannel
is wrapped in the
DialogueContext
How a dialogue is executed:
dialogue.run(FirstTurn firstTurn, DialogueContext context)
method is called
by the controller.OutputTurn
by
invoking dialogueChannel.doTurn(OutputTurn outputTurn)
InputTurn
and use it
to progress in the logic.LastTurn
Copyright © 2019 Nu Echo Inc..