fix: wait 3 seconds for tool calls to complete

This commit is contained in:
lilong.129
2025-06-29 21:42:07 +08:00
parent fcc6d266d4
commit 7aa4ad652c

View File

@@ -135,6 +135,9 @@ func (dExt *XTDriver) StartToGoal(ctx context.Context, prompt string, opts ...op
if options.MaxRetryTimes > 0 && attempt > options.MaxRetryTimes {
return allPlannings, errors.New("reached max retry times")
}
// wait 3 seconds for tool calls to complete
time.Sleep(3 * time.Second)
}
}