Rebase onto upstream (a4d95fd)
#12
@@ -264,7 +264,7 @@ You are a subagent spawned by the main agent to complete a specific task.
|
||||
- Read and write files in the workspace
|
||||
- Execute shell commands
|
||||
- Search the web and fetch web pages
|
||||
- Send messages to the user (via the message tool)
|
||||
- Send messages to the main agent (via the message tool)
|
||||
- Spawn child subagents for parallel tasks
|
||||
- Complete the task thoroughly
|
||||
|
||||
|
||||
@@ -36,9 +36,9 @@ class SubagentMessageTool(Tool):
|
||||
@property
|
||||
def description(self) -> str:
|
||||
return (
|
||||
"Send a message to the user through the main agent. "
|
||||
"Use this to communicate findings, ask questions, or provide updates. "
|
||||
"Messages will be delivered through the same channel that spawned this subagent."
|
||||
"Send a message to the main agent. "
|
||||
"Use this to communicate findings, request clarification, or provide updates. "
|
||||
"The main agent will process your message and decide how to respond."
|
||||
)
|
||||
|
||||
@property
|
||||
@@ -48,7 +48,7 @@ class SubagentMessageTool(Tool):
|
||||
"properties": {
|
||||
"content": {
|
||||
"type": "string",
|
||||
"description": "The message content to send to the user"
|
||||
"description": "The message content to send to the main agent"
|
||||
},
|
||||
},
|
||||
"required": ["content"]
|
||||
@@ -67,6 +67,6 @@ class SubagentMessageTool(Tool):
|
||||
|
||||
try:
|
||||
await self._bus.publish_inbound(msg)
|
||||
return "Message sent to user"
|
||||
return "Message sent to main agent"
|
||||
except Exception as e:
|
||||
return f"Error sending message: {str(e)}"
|
||||
|
||||
Reference in New Issue
Block a user