From fd457c0692e3d998bca0c13be992815b532585b1 Mon Sep 17 00:00:00 2001 From: arkml Date: Wed, 9 Apr 2025 15:54:27 +0530 Subject: [PATCH] the agents are now aware of their names --- apps/rowboat_agents/src/graph/swarm_wrapper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/rowboat_agents/src/graph/swarm_wrapper.py b/apps/rowboat_agents/src/graph/swarm_wrapper.py index 6fa31e16..254dc10b 100644 --- a/apps/rowboat_agents/src/graph/swarm_wrapper.py +++ b/apps/rowboat_agents/src/graph/swarm_wrapper.py @@ -254,10 +254,13 @@ def get_agents(agent_configs, tool_configs, complete_request): # Create the agent object logger.debug(f"Creating Agent object for {agent_config['name']}") print(f"Creating Agent object for {agent_config['name']}") + + # add the name and description to the agent instructions + agent_instructions = f"## Your Name\n{agent_config['name']}\n\n## Description\n{agent_config['description']}\n\n## Instructions\n{agent_config['instructions']}" try: new_agent = NewAgent( name=agent_config["name"], - instructions=agent_config["instructions"], + instructions=agent_instructions, handoff_description=agent_config["description"], tools=new_tools, model=agent_config["model"],