Merge pull request #373 from hchen2020/master

optimize naive.
This commit is contained in:
C. Oceania 2024-03-28 15:40:52 -05:00 committed by GitHub
commit 6ecf249dd7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View file

@ -69,8 +69,11 @@ public partial class RoutingService
}
// Save to Storage as well
var storage = _services.GetRequiredService<IConversationStorage>();
storage.Append(Context.ConversationId, message);
if (!message.StopCompletion && message.FunctionName != "route_to_agent")
{
var storage = _services.GetRequiredService<IConversationStorage>();
storage.Append(Context.ConversationId, message);
}
return result;
}

View file

@ -4,4 +4,4 @@ Route to the last handling agent in priority.
Expected next action agent is {{ expected_next_action_agent }}.
{%- endif %}
If user wants to speak to customer service, use function human_intervention_needed.
If user wants to or is processing with a specific task that can be handled by agents, respond with appropriate agents.
If user wants to or is processing with a specific task that can be handled by agents, respond in appropriate output format defined to let proper agent to handle the task.