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
You can delegate tasks to the following specialized agents. Carefully review each agent's description and skills to determine the best match for the user's request.
208
+
209
+
{agents_section}
210
+
211
+
## Decision Criteria
212
212
213
-
{line_break.join(agent_info_list)}
213
+
1. **Assess your own capability**: If you are the best agent to handle this request based on your own description and capabilities, answer it directly.
214
214
215
-
If you are the best to answer the question according to your description, you
216
-
can answer it.
215
+
2. **Consider specialized agents**: If another agent has more relevant skills or expertise for this request, call the `{_TRANSFER_TO_AGENT_FUNCTION_NAME}` function to transfer to that agent. Match the user's needs with the agent's skills and descriptions above.
217
216
218
-
If another agent is better for answering the question according to its
219
-
description, call `{_TRANSFER_TO_AGENT_FUNCTION_NAME}` function to transfer the
220
-
question to that agent. When transferring, do not generate any text other than
221
-
the function call.
217
+
3. **When transferring**: Only call the function - do not generate any additional text.
222
218
223
-
**NOTE**: the only available agents for `{_TRANSFER_TO_AGENT_FUNCTION_NAME}` function are {formatted_agent_names}.
219
+
**IMPORTANT**: The only valid agent names for `{_TRANSFER_TO_AGENT_FUNCTION_NAME}` are:{formatted_agent_names}
If neither you nor the other agents are best for the question, transfer to your parent agent {agent.parent_agent.name}.
224
+
4. **Escalate to parent**: If neither you nor the specialized agents are suitable for this request, transfer to your parent agent `{agent.parent_agent.name}` for broader assistance.
0 commit comments