@@ -394,7 +394,7 @@ async def process_event(r: Run, frame: CallFrame | RunFrame | PromptFrame):
394
394
for output in frame .output :
395
395
event_content += output .content
396
396
397
- tool = ToolDef (tools = ["sys.exec" ], instructions = "List the files in the current directory." )
397
+ tool = ToolDef (tools = ["sys.exec" ], instructions = "List the files in the current directory as '.' ." )
398
398
out = await gptscript .evaluate (tool ,
399
399
Options (confirm = True , disableCache = True ),
400
400
event_handlers = [process_event ],
@@ -430,8 +430,9 @@ async def process_event(r: Run, frame: CallFrame | RunFrame | PromptFrame):
430
430
for output in frame .output :
431
431
event_content += output .content
432
432
433
- tool = ToolDef (tools = ["sys.exec" ], instructions = "List the files in the current directory. If that doesn't work"
434
- "print the word FAIL." )
433
+ tool = ToolDef (tools = ["sys.exec" ],
434
+ instructions = "List the files in the current directory as '.'. If that doesn't work"
435
+ "print the word FAIL." )
435
436
out = await gptscript .evaluate (tool ,
436
437
Options (confirm = True , disableCache = True ),
437
438
event_handlers = [process_event ],
0 commit comments