Merge pull request #378 from hchen2020/master

response_to_user
This commit is contained in:
C. Oceania 2024-03-29 19:08:23 -05:00 committed by GitHub
commit 6e694125fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -6,12 +6,12 @@ public class ResponseToUserRoutingHandler : RoutingHandlerBase, IRoutingHandler
{
public string Name => "response_to_user";
public string Description => "Response according to the context without asking specific agent.";
public string Description => "When you can handle the conversation without asking specific agent.";
public List<ParameterPropertyDef> Parameters => new List<ParameterPropertyDef>
{
new ParameterPropertyDef("reason", "why response to user"),
new ParameterPropertyDef("response", "response content"),
new ParameterPropertyDef("reason", "why response to user directly without go to other agents"),
new ParameterPropertyDef("response", "response content to user in courteous words. If the user wants to end the conversation, you must set conversation_end to true and response politely."),
new ParameterPropertyDef("conversation_end", "whether to end this conversation, true or false", type: "boolean")
};

View file

@ -1,12 +1,12 @@
What is the next step based on the CONVERSATION?
Route to the last handling agent in priority.
{%- if expected_next_action_agent != empty -%}
{% if expected_next_action_agent != empty -%}
Expected next action agent is {{ expected_next_action_agent }}.
{%- endif -%}
{%- if expected_user_goal_agent != empty -%}
Expected user goal agent is {{ expected_user_goal_agent }}.
{%- endif -%}
{%- 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 in appropriate output format defined to let proper agent to handle the task.