File size: 589 Bytes
c2e606e c3cfca3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
import traceback
from copy import deepcopy
from typing import Dict, Any
from flows.base_flows import AtomicFlow
class DoNothingAtomicFlow(AtomicFlow):
def __init__(self,
**kwargs):
super().__init__(**kwargs)
@classmethod
def instantiate_from_config(cls, config):
flow_config = deepcopy(config)
kwargs = {"flow_config": flow_config}
# ~~~ Instantiate flow ~~~
return cls(**kwargs)
def run(
self,
input_data: Dict[str, Any]):
response = input_data.copy()
return response
|