F
- type of FirstTurn
L
- type of LastTurn
O
- type of OutputTurn
I
- type of InputTurn
C
- type of DialogueContext
public interface Dialogue<I extends InputTurn,O extends OutputTurn,F extends FirstTurn,L extends LastTurn,C extends DialogueContext<I,O>>
DialogueChannel
and dialogue-related logic.Modifier and Type | Method and Description |
---|---|
L |
run(F firstTurn,
C context)
Method called by the controller (e.g.
|
L run(F firstTurn, C context) throws Exception
DialogueServlet
) to run the
dialogue. It takes initial parameters from the firstTurn
parameter and must return a LastTurn
. The context
allows the dialogue to access the DialogueChannel
on which turn
exchanges can be performed (i.e. exchanges of OutputTurns
and InputTurns
).firstTurn
- First turn. Contains dialogue initialization
information. Cannot be null
.context
- Dialogue context. This context gives access to
DialogueChannel
, a Logger
and the dialogue ID.
Cannot be null
.LastTurn
. Cannot be
null
.Exception
- when something prevents the dialogue from completing
normally.Copyright © 2019 Nu Echo Inc..