예제 #1
0
        /// <inheritdoc/>
        protected override ActRepresentation initializeDialogActRepresentation()
        {
            var representation = new ActRepresentation("ChitChatAnswer");

            representation.AddParameter("domain", _domain);
            return(representation);
        }
예제 #2
0
        /// <inheritdoc/>
        protected override ActRepresentation initializeDialogActRepresentation()
        {
            var representation = new ActRepresentation("RequestEntityLabel");

            representation.AddParameter("phrase", _phrase);
            return(representation);
        }
예제 #3
0
        /// <inheritdoc/>
        public override ActRepresentation GetDialogAct()
        {
            var act = new ActRepresentation("ChitChat");

            act.AddParameter("domain", Domain);
            return(act);
        }
예제 #4
0
        /// <inheritdoc/>
        protected override ActRepresentation initializeDialogActRepresentation()
        {
            var representation = new ActRepresentation("DirectAnswerHintQuestion");

            representation.AddParameter("question", _question.OriginalSentence);
            return(representation);
        }
        /// <inheritdoc/>
        protected override ActRepresentation initializeDialogActRepresentation()
        {
            var representation = new ActRepresentation("WelcomeWithRephraseRequest");

            representation.AddParameter("question", _question.OriginalSentence);
            return(representation);
        }
예제 #6
0
        /// <inheritdoc/>
        public override ActRepresentation GetDialogAct()
        {
            var act = new ActRepresentation("Question");

            act.AddParameter("question", Question);
            return(act);
        }
예제 #7
0
        /// <inheritdoc/>
        public override ActRepresentation GetDialogAct()
        {
            var unrecognized = new ActRepresentation("Unrecognized");

            unrecognized.AddParameter("utterance", Utterance);

            return(unrecognized);
        }
        /// <inheritdoc/>
        protected override ActRepresentation initializeDialogActRepresentation()
        {
            var representation = new ActRepresentation("RephraseQuestionPropose");

            representation.AddParameter("question", _question.OriginalSentence);
            representation.AddParameter("at_least", _isAtLeast);
            return(representation);
        }
예제 #9
0
        /// <inheritdoc/>
        protected override ActRepresentation initializeDialogActRepresentation()
        {
            var act = new ActRepresentation("NoConnectionToEntity");

            act.AddParameter("entity", _entity);

            return(act);
        }
예제 #10
0
        /// <inheritdoc/>
        public override ActRepresentation GetDialogAct()
        {
            var act = new ActRepresentation("Advice");

            act.AddParameter("answer", Answer);

            return(act);
        }
예제 #11
0
        /// <inheritdoc/>
        protected override ActRepresentation initializeDialogActRepresentation()
        {
            var representation = new ActRepresentation("RequestAnswer");

            representation.AddParameter("at_least", _isAtLeastRequest);

            return(representation);
        }
예제 #12
0
        /// <inheritdoc/>
        public override ActRepresentation GetDialogAct()
        {
            if (_dialogActRepresentation == null)
            {
                _dialogActRepresentation = initializeDialogActRepresentation();
            }

            return(_dialogActRepresentation);
        }
예제 #13
0
        /// <inheritdoc/>
        public override string GetDialogActRepresentation()
        {
            if (_dialogActRepresentation == null)
            {
                _dialogActRepresentation = initializeDialogActRepresentation();
            }

            return(_dialogActRepresentation.ToFunctionalRepresentation());
        }
예제 #14
0
        /// <inheritdoc/>
        protected override ActRepresentation initializeDialogActRepresentation()
        {
            var representation = new ActRepresentation("EdgeConfirmationRequest");

            representation.AddParameter("label1", _label1);
            representation.AddParameter("relationFormat", _relationFormat);
            representation.AddParameter("label2", _label2);
            return(representation);
        }
예제 #15
0
        /// <inheritdoc/>
        public override ActRepresentation GetDialogAct()
        {
            var act = new ActRepresentation("Affirm");

            if (_expression != null)
            {
                act.AddParameter("expression", _expression);
            }

            return(act);
        }
예제 #16
0
        /// <inheritdoc/>
        protected override ActRepresentation initializeDialogActRepresentation()
        {
            var typeName = this.GetType().Name;

            if (!typeName.EndsWith("Act"))
            {
                throw new FormatException("Act name does not follow naming conventions");
            }

            var act = new ActRepresentation(typeName.Substring(0, typeName.Length - 3));

            act.AddParameter("_continuation", _continuation);
            return(act);
        }
예제 #17
0
 public void ReportParameter(string name, ActRepresentation value)
 {
     _storage.Add(name, value);
 }