0001-Added-dialog-data-types-in-proto-sandbox-rst-dialog.patch
proto/sandbox/rst/dialog/DialogAct.proto | ||
---|---|---|
1 |
package rst.dialog; |
|
2 | ||
3 |
option java_outer_classname = "DialogActType"; |
|
4 | ||
5 |
/** |
|
6 |
* A description of a dialog act consisting of utterances. |
|
7 |
* |
|
8 |
* @author Birte Carlmeyer <bcarlmey@techfak.uni-bielefeld.de> |
|
9 |
*/ |
|
10 |
message DialogAct { |
|
11 | ||
12 |
/** |
|
13 |
* The dialog act can be in different states. |
|
14 |
*/ |
|
15 |
enum EditType { |
|
16 | ||
17 |
/** |
|
18 |
* Indicating a new dialog act, |
|
19 |
*/ |
|
20 |
ADD = 0; |
|
21 | ||
22 |
/** |
|
23 |
* Replaced the last dialog act. |
|
24 |
*/ |
|
25 |
UPDATED = 1; |
|
26 | ||
27 |
/** |
|
28 |
* A previously added unit has been revoked. |
|
29 |
*/ |
|
30 |
REVOKE = 2; |
|
31 | ||
32 |
/** |
|
33 |
* The dialog act has been finally committed and will not be |
|
34 |
* changed any more. |
|
35 |
*/ |
|
36 |
COMMIT = 3; |
|
37 | ||
38 |
} |
|
39 | ||
40 |
/** |
|
41 |
* TODO comment me |
|
42 |
*/ |
|
43 |
required EditType edittype = 1; |
|
44 | ||
45 |
/** |
|
46 |
* The name of the dialog act. |
|
47 |
* |
|
48 |
* TODO What is the purpose? |
|
49 |
*/ |
|
50 |
required string name = 2; |
|
51 | ||
52 |
/** |
|
53 |
* A list of utterances. |
|
54 |
* |
|
55 |
* TODO are there any constraints? e.g., does there have to be at least one utterance? |
|
56 |
*/ |
|
57 |
repeated string utterance = 3; |
|
58 | ||
59 |
} |
proto/sandbox/rst/dialog/DialogManagerCommand.proto | ||
---|---|---|
1 |
package rst.dialog; |
|
2 | ||
3 |
option java_outer_classname = "DialogMangerCommandType"; |
|
4 | ||
5 |
/** |
|
6 |
* A description of a command for the dialog manager pamini. |
|
7 |
* |
|
8 |
* @author Birte Carlmeyer <bcarlmey@techfak.uni-bielefeld.de> |
|
9 |
*/ |
|
10 |
message DialogManagerCommand { |
|
11 | ||
12 |
/** |
|
13 |
* Possible kinds of commands. |
|
14 |
*/ |
|
15 |
enum Command { |
|
16 | ||
17 |
/** |
|
18 |
* Reset the whole interaction. |
|
19 |
*/ |
|
20 |
RESET_INTERACTION = 0; |
|
21 | ||
22 |
/* |
|
23 |
* Reset a single interaction pattern. |
|
24 |
*/ |
|
25 |
RESET_PATTERN = 1; |
|
26 | ||
27 |
} |
|
28 | ||
29 |
/** |
|
30 |
* TODO comment me |
|
31 |
*/ |
|
32 |
required Command command = 1; |
|
33 | ||
34 |
/** |
|
35 |
* TODO comment me |
|
36 |
* |
|
37 |
* Under which circumstances can this be omitted, when is it required? |
|
38 |
*/ |
|
39 |
optional string pattern_name = 2; |
|
40 | ||
41 |
} |
proto/sandbox/rst/dialog/InteractionPatternInfo.proto | ||
---|---|---|
1 |
package rst.dialog; |
|
2 | ||
3 |
option java_outer_classname = "InteractionPatternInfoType"; |
|
4 | ||
5 |
/** |
|
6 |
* A description of a current state of a pamini interaction pattern. |
|
7 |
* |
|
8 |
* @author Birte Carlmeyer <bcarlmey@techfak.uni-bielefeld.de> |
|
9 |
*/ |
|
10 |
message InteractionPatternInfo { |
|
11 | ||
12 |
/** |
|
13 |
* Name of the interaction pattern. |
|
14 |
*/ |
|
15 |
required string name = 1; |
|
16 | ||
17 |
/** |
|
18 |
* Current state. |
|
19 |
* |
|
20 |
* TODO Which states are allowed? Can this be turned into an enum? |
|
21 |
*/ |
|
22 |
required string state = 2; |
|
23 | ||
24 |
} |
|
0 |
- |