Skip to content

Commit e2db682

Browse files
committed
Update planner_agent.py
1 parent 665b530 commit e2db682

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/backend/kernel_agents/planner_agent.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,15 @@ def _generate_instruction(self, objective: str) -> str:
582582
These agents have access to the following functions:
583583
{tools_str}
584584
585+
IMPORTANT AGENT SELECTION GUIDANCE:
586+
- HrAgent: ALWAYS use for ALL employee-related tasks like onboarding, hiring, benefits, payroll, training, employee records, ID cards, mentoring, background checks, etc.
587+
- MarketingAgent: Use for marketing campaigns, branding, market research, content creation, social media, etc.
588+
- ProcurementAgent: Use for purchasing, vendor management, supply chain, asset management, etc.
589+
- ProductAgent: Use for product development, roadmaps, features, product feedback, etc.
590+
- TechSupportAgent: Use for technical issues, software/hardware setup, troubleshooting, IT support, etc.
591+
- GenericAgent: Use only for general knowledge tasks that don't fit other categories
592+
- HumanAgent: Use only when human input is absolutely required and no other agent can handle the task
593+
585594
The first step of your plan should be to ask the user for any additional information required to progress the rest of steps planned.
586595
587596
Only use the functions provided as part of your plan. If the task is not possible with the agents and tools provided, create a step with the agent of type Exception and mark the overall status as completed.
@@ -601,15 +610,6 @@ def _generate_instruction(self, objective: str) -> str:
601610
602611
Choose from {agents_str} ONLY for planning your steps.
603612
604-
IMPORTANT AGENT SELECTION GUIDANCE:
605-
- For any HR or employee-related tasks such as onboarding, benefits, payroll, ID cards, training, etc., always use the HrAgent
606-
- For any marketing-related tasks such as campaigns, product launches, advertising, etc., use the MarketingAgent
607-
- For any IT support or technical questions, use the TechSupportAgent
608-
- For any procurement or purchasing tasks, use the ProcurementAgent
609-
- For product-related tasks or inquiries, use the ProductAgent
610-
- Use the HumanAgent when human input or approval is specifically needed
611-
- Use the GenericAgent only for general tasks that don't fit other specialized agents
612-
613613
When generating the action in the plan, frame the action as an instruction you are passing to the agent to execute. It should be a short, single sentence. Include the function to use. For example, "Set up an Office 365 Account for Jessica Smith. Function: set_up_office_365_account"
614614
615615
Ensure the summary of the plan and the overall steps is less than 50 words.

0 commit comments

Comments
 (0)