Put pattern mining framework into EventDetectionAgent. NOT finished yet.

Signed-off-by: shujingke <rainkekekeke@gmail.com>
Continued working on planning logic .

Signed-off-by: shujingke <rainkekekeke@gmail.com>