Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
"properties": {
"next_action_agent": {
"type": "string",
"description": "Agent for next action based on user latest response"
"description": "Agent for next action based on user's latest response and active goal."
},
"next_action_reason": {
"type": "string",
"description": "The reason why route to this agent."
},
"user_goal_agent": {
"type": "string",
"description": "Agent who can achieve the user's active request."
"description": "Agent who can achieve the user's active goal."
},
"conversation_end": {
"type": "boolean",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ Route to the last handling agent in priority.
{% if expected_next_action_agent != empty -%}
Expected next action agent is {{ expected_next_action_agent }}.
{%- else -%}
Next action agent is inferred based on user lastest response.
next_action_agent is determined from the latest user message in the context of the active user_goal_agent.
If the user only provides requested information, keep the previous next_action_agent or fall back to the active user_goal_agent.
Comment thread
yileicn marked this conversation as resolved.
Outdated
{%- endif %}
{% if expected_user_goal_agent != empty -%}
Expected user goal agent is {{ expected_user_goal_agent }}.
{%- else -%}
User goal agent is inferred based on the user's active request.
If the latest user message starts a new request, use the latest request; otherwise keep the existing active request.
user_goal_agent is inferred from the user's active goal.
Keep the existing user_goal_agent unless the latest user message explicitly starts a different task or workflow.
{%- endif %}
Loading