You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Infrastructure/BotSharp.Core/data/agents/01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a/functions/route_to_agent.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,15 +6,15 @@
6
6
"properties": {
7
7
"next_action_agent": {
8
8
"type": "string",
9
-
"description": "Agent for next action based on user latest response"
9
+
"description": "Agent for next action based on user's latest response and active goal."
10
10
},
11
11
"next_action_reason": {
12
12
"type": "string",
13
13
"description": "The reason why route to this agent."
14
14
},
15
15
"user_goal_agent": {
16
16
"type": "string",
17
-
"description": "Agent who can achieve the user's active request."
17
+
"description": "Agent who can achieve the user's active goal."
Copy file name to clipboardExpand all lines: src/Infrastructure/BotSharp.Core/data/agents/01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a/templates/reasoner.naive.liquid
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,12 @@ Route to the last handling agent in priority.
3
3
{% ifexpected_next_action_agent!=empty -%}
4
4
Expected next action agent is {{ expected_next_action_agent }}.
5
5
{%- else -%}
6
-
Next action agent is inferred based on user lastest response.
6
+
Next action agent is determined from the latest user message in the context of the active user goal.
7
+
If the user only provides requested information, keep the previous next action agent or fall back to the agent for the active user goal.
7
8
{%- endif %}
8
9
{% ifexpected_user_goal_agent!=empty -%}
9
10
Expected user goal agent is {{ expected_user_goal_agent }}.
10
11
{%- else -%}
11
-
User goal agent is inferred based on the user's active request.
12
-
If the latest user message starts a new request, use the latest request; otherwise keep the existing active request.
12
+
User goal agent is inferred from the user's active goal.
13
+
Keep the existing user goal agent unless the latest user message explicitly starts a different task or workflow.
0 commit comments