of fluids from inside to outside outside to inside downhole to uphole or uphole to downhole either as a one off operation or multi repeated cycles while the valve assembly 40 may be controlled via the control unit 38 at any time whether programmed or by operator input in an exemplary embodiment of the downhole tool assembly 100 sensor modules 32 may also be directly incorporated into the string 14 or tool 18 to detect changes in the environment of the string 14 within the borehole 10 to indicate when an operation of a circulation valve assembly 40 is necessary the sensor module 32 could be incorporated into a logging bottom hole assembly 34 provided separately along interconnections of the string 14 or other locations along the string 14 or provided within the tool 18 the sensor module 32 may contain sensors 36 circuitry and processing software and algorithms relating to environment of the borehole indicative of a necessity for operation of a valve assembly 40 such parameters may include pressure flow speed and other measurements related to the environment of the string 14 signals from sensors 36 in the sensor module 32 or sensors 36 provided elsewhere along the string 14 are either processed by the sensor module 32 sent to a surface location 22 such as surface control unit 38 for operator evaluation or directly to a valve assembly 40 for immediate or subsequent action the surface control unit 38 or processor may receive signals from the sensors 36 and processes such signals.