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
Copy file name to clipboardExpand all lines: docs/tools/agent-tools.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,15 @@
2
2
3
3
The agent tools provide ways to create and interact with sub-agents. There are two approaches available:
4
4
5
-
1. The original `subAgent` tool (synchronous, blocking)
5
+
1. The original `agentExecute` tool (synchronous, blocking)
6
6
2. The new `agentStart` and `agentMessage` tools (asynchronous, non-blocking)
7
7
8
-
## subAgent Tool
8
+
## agentExecute Tool
9
9
10
-
The `subAgent` tool creates a sub-agent that runs synchronously until completion. The parent agent waits for the sub-agent to complete before continuing.
10
+
The `agentExecute` tool creates a sub-agent that runs synchronously until completion. The parent agent waits for the sub-agent to complete before continuing.
11
11
12
12
```typescript
13
-
subAgent({
13
+
agentExecute({
14
14
description: "A brief description of the sub-agent's purpose",
15
15
goal: 'The main objective that the sub-agent needs to achieve',
16
16
projectContext: 'Context about the problem or environment',
@@ -123,7 +123,7 @@ while (!agent1Completed || !agent2Completed) {
123
123
124
124
## Choosing Between Approaches
125
125
126
-
- Use `subAgent` for simpler tasks where blocking execution is acceptable
126
+
- Use `agentExecute` for simpler tasks where blocking execution is acceptable
text: 'I notice you sent an empty response. If you are done with your tasks, please call the sequenceComplete tool with your results. If you are waiting for other tools to complete, you can use the sleep tool to wait before checking again.',
16
+
text: 'I notice you sent an empty response. If you are done with your tasks, please call the agentDone tool with your results. If you are waiting for other tools to complete, you can use the sleep tool to wait before checking again.',
'I notice you sent an empty response. If you are done with your tasks, please call the sequenceComplete tool with your results. If you are waiting for other tools to complete, you can use the sleep tool to wait before checking again.',
103
+
'I notice you sent an empty response. If you are done with your tasks, please call the agentDone tool with your results. If you are waiting for other tools to complete, you can use the sleep tool to wait before checking again.',
0 commit comments