restore route to agent.

This commit is contained in:
Haiping Chen 2024-08-26 21:46:48 -05:00
parent ceb74f1eb7
commit 8fa9e89c8a
2 changed files with 5 additions and 4 deletions

View file

@ -11,18 +11,18 @@ public class RouteToAgentRoutingHandler : RoutingHandlerBase, IRoutingHandler
public List<ParameterPropertyDef> Parameters => new List<ParameterPropertyDef>
{
/*new ParameterPropertyDef("next_action_reason",
new ParameterPropertyDef("next_action_reason",
"the reason why route to this virtual agent.",
required: true),*/
required: true),
new ParameterPropertyDef("next_action_agent",
"agent for next action based on user latest response, if user is replying last agent's question, you must route to this agent.",
required: true),
new ParameterPropertyDef("args",
"useful parameters of next action agent, format: { }",
type: "object"),
/*new ParameterPropertyDef("user_goal_description",
new ParameterPropertyDef("user_goal_description",
"user goal based on user initial task.",
required: true),*/
required: true),
new ParameterPropertyDef("user_goal_agent",
"agent who can acheive user initial task.",
required: true),

View file

@ -19,6 +19,7 @@ Follow these steps to handle user request:
# {{ handler.description}}
{% if handler.parameters and handler.parameters != empty -%}
Parameters:
- function: {{ handler.name }}
{% for p in handler.parameters -%}
- {{ p.name }} {% if p.required -%}(required){%- endif %}: {{ p.description }}{{ "\r\n " }}
{%- endfor %}