From 765e15ef7427e7c5dc0a25a48960673f563b2f68 Mon Sep 17 00:00:00 2001
From: dmt <>
Date: Thu, 3 Oct 2019 18:54:24 +0200
Subject: [PATCH] Define request for knowledge searching and add Constructor
 and Reconstructor to __all__.

---
 cml/domain/construction.py   |  2 +-
 cml/domain/reconstruction.py |  2 +-
 cml/shared/request.py        | 17 ++++++++++++++++-
 3 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/cml/domain/construction.py b/cml/domain/construction.py
index d9c497a..0f11a2c 100644
--- a/cml/domain/construction.py
+++ b/cml/domain/construction.py
@@ -1,7 +1,7 @@
 
 
 __all__ = (
-
+    "Construction"
 )
 
 
diff --git a/cml/domain/reconstruction.py b/cml/domain/reconstruction.py
index 87445e4..23b7743 100644
--- a/cml/domain/reconstruction.py
+++ b/cml/domain/reconstruction.py
@@ -1,7 +1,7 @@
 
 
 __all__ = (
-
+    "Reconstruction"
 )
 
 
diff --git a/cml/shared/request.py b/cml/shared/request.py
index 1f9fddf..c4514a9 100644
--- a/cml/shared/request.py
+++ b/cml/shared/request.py
@@ -1,7 +1,14 @@
 from dataclasses import dataclass
 
 from cml.ports.source_adapters import Adapter
-from cml.shared.settings import PreprocessingSettings, BlockProcessingSettings
+from cml.domain.reconstruction import Reconstructor
+from cml.domain.data_source import DataSource
+from cml.domain.construction import Constructor
+from cml.shared.settings import (
+    PreprocessingSettings,
+    BlockProcessingSettings,
+    DeconstructionSettings
+)
 
 
 @dataclass
@@ -9,3 +16,11 @@ class PreprocessRequest:
     source_adapter: Adapter
     pre_settings: PreprocessingSettings
     block_settings: BlockProcessingSettings
+
+
+@dataclass
+class KnowledgeSearchRequest:
+    constructor: Constructor
+    reconstructor: Reconstructor
+    data_source: DataSource
+    deconstruction_settings: DeconstructionSettings
-- 
GitLab