Remove task_completed

This commit is contained in:
Haiping Chen 2024-03-24 23:38:00 -05:00
parent 4ad9b095ea
commit 5f5afada70
3 changed files with 1 additions and 3 deletions

View file

@ -29,7 +29,6 @@ public class TaskCompletedRoutingHandler : RoutingHandlerBase, IRoutingHandler
public List<string> Planers => new List<string>
{
nameof(NaivePlanner),
nameof(HFPlanner)
};

View file

@ -3,5 +3,4 @@ Route to the last handling agent in priority.
{% if expected_next_action_agent != empty -%}
Expected next action agent is {{ expected_next_action_agent }}.
{%- endif %}
If user completes the task, use function task_completed.
If user wants to speak to customer service, use function human_intervention_needed.

View file

@ -381,7 +381,7 @@ public partial class MongoRepository
var refTime = foundDialog.Dialogs.ElementAt(foundIdx).MetaData.CreateTime;
var stateFilter = Builders<ConversationStateDocument>.Filter.Eq(x => x.ConversationId, conversationId);
var foundStates = _dc.ConversationStates.Find(stateFilter).FirstOrDefault();
if (foundStates == null || foundStates.States.IsNullOrEmpty()) return false;
// if (foundStates == null || foundStates.States.IsNullOrEmpty()) return false;
var truncatedStates = new List<StateMongoElement>();
foreach (var state in foundStates.States)