File size: 476 Bytes
65fbdbe |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
from typing import Dict, Any
from flows.base_flows import AtomicFlow
class FixedReplyFlow(AtomicFlow):
REQUIRED_KEYS_CONFIG = ["fixed_reply"]
__default_flow_config = {
"input_interface": [],
"output_interface": ["fixed_reply"],
}
def __init__(self, **kwargs):
super().__init__(**kwargs)
def run(self,
input_data: Dict[str, Any]) -> Dict[str, Any]:
return {"fixed_reply": self.flow_config["fixed_reply"]}
|