From e401c8a44d4e771116f714a8d9a341cba85bec08 Mon Sep 17 00:00:00 2001 From: Birte Carlmeyer Date: Mon, 12 Jan 2015 09:27:55 +0100 Subject: [PATCH] add new data types for the communication with the dialog manager pamini --- proto/sandbox/rst/dialog/DialogAct.proto | 48 ++++++++++++++++++++++ proto/sandbox/rst/dialog/DialogMangerCommand.proto | 31 ++++++++++++++ .../rst/dialog/InteractionPatternInfo.proto | 19 +++++++++ 3 files changed, 98 insertions(+) create mode 100644 proto/sandbox/rst/dialog/DialogAct.proto create mode 100644 proto/sandbox/rst/dialog/DialogMangerCommand.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..9899e38 --- /dev/null +++ b/proto/sandbox/rst/dialog/DialogAct.proto @@ -0,0 +1,48 @@ +package rst.dialog; + + +option java_outer_classname = "DialogActType"; + +/** + * A description of a dialog act for the dialog manager pamini. + * + * @author Birte Carlmeyer + */ +message DialogAct { + + /** + * The dialog act can be in differnet states: + * + * ADD - indicating a new dialog act, + * UPDATE - replaced the last dialog act + * REVIKE - a previously added unit has been revoked + * COMMIT – the dialog act has been finally committed and will not + * be changed any more. + */ + enum EditType { + + + ADD = 0; + + UPDATED = 1; + + REVOKE = 2; + + COMMIT = 3; + + } + + + required EditType edittype = 1; + + /** + * The name of the dialog act. + */ + required string name = 2; + + /** + * A list of utterances. + */ + repeated string utterance = 3; + +} diff --git a/proto/sandbox/rst/dialog/DialogMangerCommand.proto b/proto/sandbox/rst/dialog/DialogMangerCommand.proto new file mode 100644 index 0000000..86cbd0c --- /dev/null +++ b/proto/sandbox/rst/dialog/DialogMangerCommand.proto @@ -0,0 +1,31 @@ +package rst.dialog; + + +option java_outer_classname = "DialogMangerCommandType"; + +/** + * A description of a command for the dialog manager pamini. + * + * @author Birte Carlmeyer + */ +message DialogMangerCommand { + + /** + * Possible kinds of commands. + */ + enum Command { + + // reset the whole interaction + RESET_INTERACTION = 0; + + // reset a single interaction pattern + RESET_PATTERN = 1; + + } + + required Command command = 1; + + 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..74570a6 --- /dev/null +++ b/proto/sandbox/rst/dialog/InteractionPatternInfo.proto @@ -0,0 +1,19 @@ +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 + required string state = 2; + +} -- 1.9.1