Lines Matching refs:conversation
72 int NumMessagesToConsider(const Conversation& conversation, in NumMessagesToConsider() argument
75 conversation.messages.size() < max_conversation_history_length) in NumMessagesToConsider()
76 ? conversation.messages.size() in NumMessagesToConsider()
981 const Conversation& conversation, const int num_messages, in SuggestActionsFromModel() argument
985 TC3_CHECK_LE(num_messages, conversation.messages.size()); in SuggestActionsFromModel()
988 sensitive_model_->EvalConversation(conversation, num_messages).first) { in SuggestActionsFromModel()
1014 for (int i = conversation.messages.size() - num_messages; in SuggestActionsFromModel()
1015 i < conversation.messages.size(); i++) { in SuggestActionsFromModel()
1016 const ConversationMessage& message = conversation.messages[i]; in SuggestActionsFromModel()
1049 const Conversation& conversation, const ActionSuggestionOptions& options, in SuggestActionsFromConversationIntentDetection() argument
1053 conversation_intent_detection_->SuggestActions(conversation, options)); in SuggestActionsFromConversationIntentDetection()
1076 const Conversation& conversation, const Annotator* annotator) const { in AnnotateConversation() argument
1078 return conversation; in AnnotateConversation()
1099 return conversation; in AnnotateConversation()
1101 Conversation annotated_conversation = conversation; in AnnotateConversation()
1116 const Conversation& conversation, in SuggestActionsFromAnnotations() argument
1129 const int last_person = conversation.messages.back().user_id; in SuggestActionsFromAnnotations()
1134 for (int message_index = conversation.messages.size() - 1; message_index >= 0; in SuggestActionsFromAnnotations()
1136 const ConversationMessage& message = conversation.messages[message_index]; in SuggestActionsFromAnnotations()
1272 const Conversation& conversation, const TfLiteModelExecutor* model_executor, in SuggestActionsFromLua() argument
1281 lua_bytecode_, conversation, model_executor, model_->tflite_model_spec(), in SuggestActionsFromLua()
1291 const Conversation& conversation, const TfLiteModelExecutor* model_executor, in SuggestActionsFromLua() argument
1300 const Conversation& conversation, const Annotator* annotator, in GatherActionsSuggestions() argument
1303 if (conversation.messages.empty()) { in GatherActionsSuggestions()
1309 AnnotateConversation(conversation, annotator); in GatherActionsSuggestions()
1423 const Conversation& conversation, const Annotator* annotator, in SuggestActions() argument
1428 for (int i = 1; i < conversation.messages.size(); i++) { in SuggestActions()
1429 if (conversation.messages[i].reference_time_ms_utc < in SuggestActions()
1430 conversation.messages[i - 1].reference_time_ms_utc) { in SuggestActions()
1437 for (const ConversationMessage& message : conversation.messages) { in SuggestActions()
1450 if (!GatherActionsSuggestions(conversation, annotator, options, &response)) { in SuggestActions()
1453 } else if (!ranker_->RankActions(conversation, &response, entity_data_schema_, in SuggestActions()
1464 const Conversation& conversation, in SuggestActions() argument
1466 return SuggestActions(conversation, /*annotator=*/nullptr, options); in SuggestActions()