Lines Matching refs:conversation

74 int NumMessagesToConsider(const Conversation& conversation,  in NumMessagesToConsider()  argument
77 conversation.messages.size() < max_conversation_history_length) in NumMessagesToConsider()
78 ? conversation.messages.size() in NumMessagesToConsider()
494 const Conversation& conversation, const int num_messages, in IsLowConfidenceInput() argument
498 conversation.messages[conversation.messages.size() - i].text; in IsLowConfidenceInput()
947 const Conversation& conversation, const int num_messages, in SuggestActionsFromModel() argument
951 TC3_CHECK_LE(num_messages, conversation.messages.size()); in SuggestActionsFromModel()
974 for (int i = conversation.messages.size() - num_messages; in SuggestActionsFromModel()
975 i < conversation.messages.size(); i++) { in SuggestActionsFromModel()
976 const ConversationMessage& message = conversation.messages[i]; in SuggestActionsFromModel()
1026 const Conversation& conversation, const ActionSuggestionOptions& options, in SuggestActionsFromAnnotations() argument
1039 const int last_person = conversation.messages.back().user_id; in SuggestActionsFromAnnotations()
1044 for (int message_index = conversation.messages.size() - 1; message_index >= 0; in SuggestActionsFromAnnotations()
1046 const ConversationMessage& message = conversation.messages[message_index]; in SuggestActionsFromAnnotations()
1212 const Conversation& conversation, in SuggestActionsFromRules() argument
1215 const int message_index = conversation.messages.size() - 1; in SuggestActionsFromRules()
1216 const std::string& message = conversation.messages.back().text; in SuggestActionsFromRules()
1302 const Conversation& conversation, const TfLiteModelExecutor* model_executor, in SuggestActionsFromLua() argument
1311 lua_bytecode_, conversation, model_executor, model_->tflite_model_spec(), in SuggestActionsFromLua()
1321 const Conversation& conversation, const Annotator* annotator, in GatherActionsSuggestions() argument
1324 if (conversation.messages.empty()) { in GatherActionsSuggestions()
1329 conversation, model_->max_conversation_history_length()); in GatherActionsSuggestions()
1336 SuggestActionsFromAnnotations(conversation, options, annotator, in GatherActionsSuggestions()
1341 for (int i = conversation.messages.size() - num_messages; in GatherActionsSuggestions()
1342 i < conversation.messages.size(); i++) { in GatherActionsSuggestions()
1343 input_text_length += conversation.messages[i].text.length(); in GatherActionsSuggestions()
1345 if (!ParseLocales(conversation.messages[i].detected_text_language_tags, in GatherActionsSuggestions()
1375 IsLowConfidenceInput(conversation, num_messages, &post_check_rules)) { in GatherActionsSuggestions()
1381 if (!SuggestActionsFromModel(conversation, num_messages, options, response, in GatherActionsSuggestions()
1394 conversation, model_executor_.get(), interpreter.get(), in GatherActionsSuggestions()
1401 if (!SuggestActionsFromRules(conversation, &response->actions)) { in GatherActionsSuggestions()
1416 const Conversation& conversation, const Annotator* annotator, in SuggestActions() argument
1419 if (!GatherActionsSuggestions(conversation, annotator, options, &response)) { in SuggestActions()
1422 } else if (!ranker_->RankActions(conversation, &response, entity_data_schema_, in SuggestActions()
1433 const Conversation& conversation, in SuggestActions() argument
1435 return SuggestActions(conversation, /*annotator=*/nullptr, options); in SuggestActions()