Lines Matching refs:actions_model
171 std::unique_ptr<ActionsModelT> actions_model = in TEST_F() local
173 SetTestEntityDataSchema(actions_model.get()); in TEST_F()
176 actions_model->annotation_actions_spec->annotation_mapping.clear(); in TEST_F()
177 actions_model->annotation_actions_spec->annotation_mapping.emplace_back( in TEST_F()
180 actions_model->annotation_actions_spec->annotation_mapping.back().get(); in TEST_F()
192 ActionsModel::Pack(builder, actions_model.get())); in TEST_F()
225 std::unique_ptr<ActionsModelT> actions_model = in TEST_F() local
227 SetTestEntityDataSchema(actions_model.get()); in TEST_F()
230 actions_model->annotation_actions_spec->annotation_mapping.clear(); in TEST_F()
231 actions_model->annotation_actions_spec->annotation_mapping.emplace_back( in TEST_F()
234 actions_model->annotation_actions_spec->annotation_mapping.back().get(); in TEST_F()
249 ActionsModel::Pack(builder, actions_model.get())); in TEST_F()
311 std::unique_ptr<ActionsModelT> actions_model = in TEST_F() local
314 actions_model->annotation_actions_spec->deduplicate_annotations = false; in TEST_F()
317 ActionsModel::Pack(builder, actions_model.get())); in TEST_F()
356 std::unique_ptr<ActionsModelT> actions_model = in TestSuggestActionsFromAnnotations() local
360 set_config_fn(actions_model.get()); in TestSuggestActionsFromAnnotations()
363 actions_model->preconditions->min_smart_reply_triggering_score = 1.0; in TestSuggestActionsFromAnnotations()
367 ActionsModel::Pack(builder, actions_model.get())); in TestSuggestActionsFromAnnotations()
413 [](ActionsModelT* actions_model) { in TEST_F() argument
414 actions_model->annotation_actions_spec->include_local_user_messages = in TEST_F()
416 actions_model->annotation_actions_spec->only_until_last_sent = true; in TEST_F()
417 actions_model->annotation_actions_spec->max_history_from_any_person = 1; in TEST_F()
418 actions_model->annotation_actions_spec->max_history_from_last_person = in TEST_F()
428 [](ActionsModelT* actions_model) { in TEST_F() argument
429 actions_model->annotation_actions_spec->include_local_user_messages = in TEST_F()
431 actions_model->annotation_actions_spec->only_until_last_sent = true; in TEST_F()
432 actions_model->annotation_actions_spec->max_history_from_any_person = 1; in TEST_F()
433 actions_model->annotation_actions_spec->max_history_from_last_person = in TEST_F()
444 [](ActionsModelT* actions_model) { in TEST_F() argument
445 actions_model->annotation_actions_spec->include_local_user_messages = in TEST_F()
447 actions_model->annotation_actions_spec->only_until_last_sent = true; in TEST_F()
448 actions_model->annotation_actions_spec->max_history_from_any_person = 2; in TEST_F()
449 actions_model->annotation_actions_spec->max_history_from_last_person = in TEST_F()
461 [](ActionsModelT* actions_model) { in TEST_F() argument
462 actions_model->annotation_actions_spec->include_local_user_messages = in TEST_F()
464 actions_model->annotation_actions_spec->only_until_last_sent = true; in TEST_F()
465 actions_model->annotation_actions_spec->max_history_from_any_person = 3; in TEST_F()
466 actions_model->annotation_actions_spec->max_history_from_last_person = in TEST_F()
479 [](ActionsModelT* actions_model) { in TEST_F() argument
480 actions_model->annotation_actions_spec->include_local_user_messages = in TEST_F()
482 actions_model->annotation_actions_spec->only_until_last_sent = true; in TEST_F()
483 actions_model->annotation_actions_spec->max_history_from_any_person = 5; in TEST_F()
484 actions_model->annotation_actions_spec->max_history_from_last_person = in TEST_F()
497 [](ActionsModelT* actions_model) { in TEST_F() argument
498 actions_model->annotation_actions_spec->include_local_user_messages = in TEST_F()
500 actions_model->annotation_actions_spec->only_until_last_sent = false; in TEST_F()
501 actions_model->annotation_actions_spec->max_history_from_any_person = 5; in TEST_F()
502 actions_model->annotation_actions_spec->max_history_from_last_person = in TEST_F()
519 std::unique_ptr<ActionsModelT> actions_model = in TestSuggestActionsWithThreshold() local
521 set_value_fn(actions_model.get()); in TestSuggestActionsWithThreshold()
524 ActionsModel::Pack(builder, actions_model.get())); in TestSuggestActionsWithThreshold()
541 [](ActionsModelT* actions_model) { in TEST_F() argument
542 actions_model->preconditions->min_smart_reply_triggering_score = 1.0; in TEST_F()
551 [](ActionsModelT* actions_model) { in TEST_F() argument
552 actions_model->preconditions->min_reply_score_threshold = 1.0; in TEST_F()
561 [](ActionsModelT* actions_model) { in TEST_F() argument
562 actions_model->preconditions->max_sensitive_topic_score = 0.0; in TEST_F()
570 [](ActionsModelT* actions_model) { in TEST_F() argument
571 actions_model->preconditions->max_input_length = 0; in TEST_F()
578 [](ActionsModelT* actions_model) { in TEST_F() argument
579 actions_model->preconditions->min_input_length = 100; in TEST_F()
592 [](ActionsModelT* actions_model) {}, unilib_.get(), in TEST_F() argument
601 [](ActionsModelT* actions_model) { in TEST_F() argument
602 actions_model->preconditions->suppress_on_low_confidence_input = true; in TEST_F()
603 actions_model->low_confidence_rules.reset(new RulesModelT); in TEST_F()
604 actions_model->low_confidence_rules->regex_rule.emplace_back( in TEST_F()
606 actions_model->low_confidence_rules->regex_rule.back()->pattern = in TEST_F()
615 std::unique_ptr<ActionsModelT> actions_model = in TEST_F() local
618 actions_model->rules.reset(new RulesModelT()); in TEST_F()
619 actions_model->rules->regex_rule.emplace_back(new RulesModel_::RegexRuleT); in TEST_F()
620 RulesModel_::RegexRuleT* rule = actions_model->rules->regex_rule.back().get(); in TEST_F()
644 actions_model->preconditions->suppress_on_low_confidence_input = true; in TEST_F()
645 actions_model->low_confidence_rules.reset(new RulesModelT); in TEST_F()
646 actions_model->low_confidence_rules->regex_rule.emplace_back( in TEST_F()
648 actions_model->low_confidence_rules->regex_rule.back()->pattern = "hello"; in TEST_F()
649 actions_model->low_confidence_rules->regex_rule.back()->output_pattern = in TEST_F()
654 ActionsModel::Pack(builder, actions_model.get())); in TEST_F()
674 std::unique_ptr<ActionsModelT> actions_model = in TEST_F() local
676 actions_model->low_confidence_rules.reset(); in TEST_F()
679 actions_model->rules.reset(new RulesModelT()); in TEST_F()
680 actions_model->rules->regex_rule.emplace_back(new RulesModel_::RegexRuleT); in TEST_F()
681 RulesModel_::RegexRuleT* rule = actions_model->rules->regex_rule.back().get(); in TEST_F()
705 actions_model->preconditions->low_confidence_rules.reset(); in TEST_F()
723 ActionsModel::Pack(builder, actions_model.get())); in TEST_F()
744 std::unique_ptr<ActionsModelT> actions_model = in TEST_F() local
748 if (actions_model->tflite_model_spec->output_sensitive_topic_score < 0) { in TEST_F()
752 actions_model->preconditions->max_sensitive_topic_score = 0.0; in TEST_F()
753 actions_model->preconditions->suppress_on_sensitive_topic = true; in TEST_F()
756 ActionsModel::Pack(builder, actions_model.get())); in TEST_F()
778 std::unique_ptr<ActionsModelT> actions_model = in TEST_F() local
782 actions_model->max_conversation_history_length = 10; in TEST_F()
786 ActionsModel::Pack(builder, actions_model.get())); in TEST_F()
877 std::unique_ptr<ActionsModelT> actions_model = in TEST_F() local
879 ASSERT_TRUE(DecompressActionsModel(actions_model.get())); in TEST_F()
881 actions_model->rules.reset(new RulesModelT()); in TEST_F()
882 actions_model->rules->regex_rule.emplace_back(new RulesModel_::RegexRuleT); in TEST_F()
883 RulesModel_::RegexRuleT* rule = actions_model->rules->regex_rule.back().get(); in TEST_F()
912 SetTestEntityDataSchema(actions_model.get()); in TEST_F()
917 actions_model->actions_entity_data_schema.data())); in TEST_F()
925 ActionsModel::Pack(builder, actions_model.get())); in TEST_F()
954 std::unique_ptr<ActionsModelT> actions_model = in TEST_F() local
956 ASSERT_TRUE(DecompressActionsModel(actions_model.get())); in TEST_F()
958 actions_model->rules.reset(new RulesModelT()); in TEST_F()
959 actions_model->rules->regex_rule.emplace_back(new RulesModel_::RegexRuleT); in TEST_F()
960 RulesModel_::RegexRuleT* rule = actions_model->rules->regex_rule.back().get(); in TEST_F()
985 SetTestEntityDataSchema(actions_model.get()); in TEST_F()
989 ActionsModel::Pack(builder, actions_model.get())); in TEST_F()
1014 std::unique_ptr<ActionsModelT> actions_model = in TEST_F() local
1016 ASSERT_TRUE(DecompressActionsModel(actions_model.get())); in TEST_F()
1018 actions_model->rules.reset(new RulesModelT()); in TEST_F()
1019 actions_model->rules->regex_rule.emplace_back(new RulesModel_::RegexRuleT); in TEST_F()
1020 RulesModel_::RegexRuleT* rule = actions_model->rules->regex_rule.back().get(); in TEST_F()
1039 ActionsModel::Pack(builder, actions_model.get())); in TEST_F()
1059 std::unique_ptr<ActionsModelT> actions_model = in TEST_F() local
1061 ASSERT_TRUE(DecompressActionsModel(actions_model.get())); in TEST_F()
1063 actions_model->rules->grammar_rules.reset(new RulesModel_::GrammarRulesT); in TEST_F()
1067 actions_model->rules->grammar_rules.get(); in TEST_F()
1099 ActionsModel::Pack(builder, actions_model.get())); in TEST_F()
1121 std::unique_ptr<ActionsModelT> actions_model = in TEST_F() local
1123 ASSERT_TRUE(DecompressActionsModel(actions_model.get())); in TEST_F()
1125 actions_model->rules->grammar_rules.reset(new RulesModel_::GrammarRulesT); in TEST_F()
1129 actions_model->rules->grammar_rules.get(); in TEST_F()
1162 ActionsModel::Pack(builder, actions_model.get())); in TEST_F()
1202 std::unique_ptr<ActionsModelT> actions_model = in TEST_F() local
1204 ASSERT_TRUE(DecompressActionsModel(actions_model.get())); in TEST_F()
1206 actions_model->rules.reset(new RulesModelT()); in TEST_F()
1207 actions_model->rules->regex_rule.emplace_back(new RulesModel_::RegexRuleT); in TEST_F()
1208 actions_model->rules->regex_rule.back()->pattern = in TEST_F()
1210 actions_model->rules->regex_rule.back()->actions.emplace_back( in TEST_F()
1212 actions_model->rules->regex_rule.back()->actions.back()->action.reset( in TEST_F()
1215 actions_model->rules->regex_rule.back()->actions.back()->action.get(); in TEST_F()
1221 ActionsModel::Pack(builder, actions_model.get())); in TEST_F()
1254 std::unique_ptr<ActionsModelT> actions_model = in TEST_F() local
1256 ASSERT_TRUE(DecompressActionsModel(actions_model.get())); in TEST_F()
1258 actions_model->rules.reset(new RulesModelT()); in TEST_F()
1259 actions_model->rules->regex_rule.emplace_back(new RulesModel_::RegexRuleT); in TEST_F()
1260 RulesModel_::RegexRuleT* rule = actions_model->rules->regex_rule.back().get(); in TEST_F()
1278 ActionsModel::Pack(builder, actions_model.get())); in TEST_F()