From 96e19000196e0b0dac23efc0893c35b0f555ed7e Mon Sep 17 00:00:00 2001 From: Birte Carlmeyer Date: Mon, 12 Jan 2015 09:27:55 +0100 Subject: [PATCH] Added dialog data types in proto/sandbox/rst/dialog --- proto/sandbox/rst/dialog/DialogAct.proto | 59 ++++++++++++++++++++++ .../sandbox/rst/dialog/DialogManagerCommand.proto | 41 +++++++++++++++ .../rst/dialog/InteractionPatternInfo.proto | 24 +++++++++ 3 files changed, 124 insertions(+) create mode 100644 proto/sandbox/rst/dialog/DialogAct.proto create mode 100644 proto/sandbox/rst/dialog/DialogManagerCommand.proto create mode 100644 proto/sandbox/rst/dialog/InteractionPatternInfo.proto diff --git a/proto/sandbox/rst/dialog/DialogAct.proto b/proto/sandbox/rst/dialog/DialogAct.proto new file mode 100644 index 0000000..10069af --- /dev/null +++ b/proto/sandbox/rst/dialog/DialogAct.proto @@ -0,0 +1,59 @@ +package rst.dialog; + +option java_outer_classname = "DialogActType"; + +/** + * A description of a dialog act consisting of utterances. + * + * @author Birte Carlmeyer + */ +message DialogAct { + + /** + * The dialog act can be in different states. + */ + enum EditType { + + /** + * Indicating a new dialog act, + */ + ADD = 0; + + /** + * Replaced the last dialog act. + */ + UPDATED = 1; + + /** + * A previously added unit has been revoked. + */ + REVOKE = 2; + + /** + * The dialog act has been finally committed and will not be + * changed any more. + */ + COMMIT = 3; + + } + + /** + * TODO comment me + */ + required EditType edittype = 1; + + /** + * The name of the dialog act. + * + * TODO What is the purpose? + */ + required string name = 2; + + /** + * A list of utterances. + * + * TODO are there any constraints? e.g., does there have to be at least one utterance? + */ + repeated string utterance = 3; + +} diff --git a/proto/sandbox/rst/dialog/DialogManagerCommand.proto b/proto/sandbox/rst/dialog/DialogManagerCommand.proto new file mode 100644 index 0000000..8b5d088 --- /dev/null +++ b/proto/sandbox/rst/dialog/DialogManagerCommand.proto @@ -0,0 +1,41 @@ +package rst.dialog; + +option java_outer_classname = "DialogMangerCommandType"; + +/** + * A description of a command for the dialog manager pamini. + * + * @author Birte Carlmeyer + */ +message DialogManagerCommand { + + /** + * Possible kinds of commands. + */ + enum Command { + + /** + * Reset the whole interaction. + */ + RESET_INTERACTION = 0; + + /* + * Reset a single interaction pattern. + */ + RESET_PATTERN = 1; + + } + + /** + * TODO comment me + */ + required Command command = 1; + + /** + * TODO comment me + * + * Under which circumstances can this be omitted, when is it required? + */ + optional string pattern_name = 2; + +} diff --git a/proto/sandbox/rst/dialog/InteractionPatternInfo.proto b/proto/sandbox/rst/dialog/InteractionPatternInfo.proto new file mode 100644 index 0000000..54779ff --- /dev/null +++ b/proto/sandbox/rst/dialog/InteractionPatternInfo.proto @@ -0,0 +1,24 @@ +package rst.dialog; + +option java_outer_classname = "InteractionPatternInfoType"; + +/** + * A description of a current state of a pamini interaction pattern. + * + * @author Birte Carlmeyer + */ +message InteractionPatternInfo { + + /** + * Name of the interaction pattern. + */ + required string name = 1; + + /** + * Current state. + * + * TODO Which states are allowed? Can this be turned into an enum? + */ + required string state = 2; + +} -- 2.1.4