Skip to content

Commit 6e69412

Browse files
authored
Merge pull request #378 from hchen2020/master
response_to_user
2 parents 86f056b + 91d2bb1 commit 6e69412

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Infrastructure/BotSharp.Core/Routing/Handlers/ResponseToUserRoutingHandler.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ public class ResponseToUserRoutingHandler : RoutingHandlerBase, IRoutingHandler
66
{
77
public string Name => "response_to_user";
88

9-
public string Description => "Response according to the context without asking specific agent.";
9+
public string Description => "When you can handle the conversation without asking specific agent.";
1010

1111
public List<ParameterPropertyDef> Parameters => new List<ParameterPropertyDef>
1212
{
13-
new ParameterPropertyDef("reason", "why response to user"),
14-
new ParameterPropertyDef("response", "response content"),
13+
new ParameterPropertyDef("reason", "why response to user directly without go to other agents"),
14+
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."),
1515
new ParameterPropertyDef("conversation_end", "whether to end this conversation, true or false", type: "boolean")
1616
};
1717

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
What is the next step based on the CONVERSATION?
22
Route to the last handling agent in priority.
33

4-
{%- if expected_next_action_agent != empty -%}
4+
{% if expected_next_action_agent != empty -%}
55
Expected next action agent is {{ expected_next_action_agent }}.
66
{%- endif -%}
77
{%- if expected_user_goal_agent != empty -%}
88
Expected user goal agent is {{ expected_user_goal_agent }}.
9-
{%- endif -%}
9+
{%- endif %}
1010

1111
If user wants to speak to customer service, use function human_intervention_needed.
1212
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.

0 commit comments

Comments
 (0)