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';
1010import { textEditorTool } from './io/textEditor.js' ;
1111import { createMcpTool } from './mcp.js' ;
1212import { listBackgroundToolsTool } from './system/listBackgroundTools.js' ;
13- import { respawnTool } from './system/respawn.js' ;
1413import { sequenceCompleteTool } from './system/sequenceComplete.js' ;
1514import { shellMessageTool } from './system/shellMessage.js' ;
1615import { shellStartTool } from './system/shellStart.js' ;
@@ -39,7 +38,7 @@ export function getTools(options?: GetToolsOptions): Tool[] {
3938 shellMessageTool as unknown as Tool ,
4039 browseStartTool as unknown as Tool ,
4140 browseMessageTool as unknown as Tool ,
42- respawnTool as unknown as Tool ,
41+ // respawnTool as unknown as Tool, this is a confusing tool for now.
4342 sleepTool as unknown as Tool ,
4443 listBackgroundToolsTool as unknown as Tool ,
4544 ] ;
Original file line number Diff line number Diff line change @@ -8,9 +8,8 @@ import { respawnTool } from './respawn';
88const toolContext : ToolContext = getMockToolContext ( ) ;
99
1010describe ( 'respawnTool' , ( ) => {
11- it ( 'should have correct name and description ' , ( ) => {
11+ it ( 'should have correct name' , ( ) => {
1212 expect ( respawnTool . name ) . toBe ( 'respawn' ) ;
13- expect ( respawnTool . description ) . toContain ( 'Resets the agent context' ) ;
1413 } ) ;
1514
1615 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({
2020export const respawnTool : Tool = {
2121 name : 'respawn' ,
2222 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. ' ,
2424 logPrefix : '🔄' ,
2525 parameters : parameterSchema ,
2626 returns : returnSchema ,
You can’t perform that action at this time.
0 commit comments