File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import { fetchTool } from './io/fetch.js';
10
10
import { textEditorTool } from './io/textEditor.js' ;
11
11
import { createMcpTool } from './mcp.js' ;
12
12
import { listBackgroundToolsTool } from './system/listBackgroundTools.js' ;
13
- import { respawnTool } from './system/respawn.js' ;
14
13
import { sequenceCompleteTool } from './system/sequenceComplete.js' ;
15
14
import { shellMessageTool } from './system/shellMessage.js' ;
16
15
import { shellStartTool } from './system/shellStart.js' ;
@@ -39,7 +38,7 @@ export function getTools(options?: GetToolsOptions): Tool[] {
39
38
shellMessageTool as unknown as Tool ,
40
39
browseStartTool as unknown as Tool ,
41
40
browseMessageTool as unknown as Tool ,
42
- respawnTool as unknown as Tool ,
41
+ // respawnTool as unknown as Tool, this is a confusing tool for now.
43
42
sleepTool as unknown as Tool ,
44
43
listBackgroundToolsTool as unknown as Tool ,
45
44
] ;
Original file line number Diff line number Diff line change @@ -8,9 +8,8 @@ import { respawnTool } from './respawn';
8
8
const toolContext : ToolContext = getMockToolContext ( ) ;
9
9
10
10
describe ( 'respawnTool' , ( ) => {
11
- it ( 'should have correct name and description ' , ( ) => {
11
+ it ( 'should have correct name' , ( ) => {
12
12
expect ( respawnTool . name ) . toBe ( 'respawn' ) ;
13
- expect ( respawnTool . description ) . toContain ( 'Resets the agent context' ) ;
14
13
} ) ;
15
14
16
15
it ( 'should execute and return confirmation message' , async ( ) => {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const returnSchema = z.object({
20
20
export const respawnTool : Tool = {
21
21
name : 'respawn' ,
22
22
description :
23
- 'Resets the agent context to just the system prompt and provided context' ,
23
+ 'Resets the current conversation to just the system prompt and provided input context to this tool. ' ,
24
24
logPrefix : '🔄' ,
25
25
parameters : parameterSchema ,
26
26
returns : returnSchema ,
You can’t perform that action at this time.
0 commit comments