added default config
Browse files- HumanStandardInputFlow.py +0 -13
- HumanStandardInputFlow.yaml +14 -0
HumanStandardInputFlow.py
CHANGED
|
@@ -52,19 +52,6 @@ class HumanStandardInputFlow(AtomicFlow):
|
|
| 52 |
|
| 53 |
query_message_prompt_template: JinjaPrompt = None
|
| 54 |
|
| 55 |
-
__default_flow_config = {
|
| 56 |
-
"_target_": "flow_modules.aiflows.HumanStandardInputFlowModule.HumanStandardInputFlow.instantiate_from_config",
|
| 57 |
-
"name": "HumanStandardInput",
|
| 58 |
-
"end_of_input_string": "EOI",
|
| 59 |
-
"description": "Reads input from the user's standard input.",
|
| 60 |
-
"query_message_prompt_template": {
|
| 61 |
-
"_target_": "aiflows.prompt_template.JinjaPrompt",
|
| 62 |
-
"template": "",
|
| 63 |
-
"input_variables": [],
|
| 64 |
-
"partial_variables": {},
|
| 65 |
-
}
|
| 66 |
-
}
|
| 67 |
-
|
| 68 |
def __init__(self, query_message_prompt_template, **kwargs):
|
| 69 |
super().__init__(**kwargs)
|
| 70 |
self.query_message_prompt_template = query_message_prompt_template
|
|
|
|
| 52 |
|
| 53 |
query_message_prompt_template: JinjaPrompt = None
|
| 54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
def __init__(self, query_message_prompt_template, **kwargs):
|
| 56 |
super().__init__(**kwargs)
|
| 57 |
self.query_message_prompt_template = query_message_prompt_template
|
HumanStandardInputFlow.yaml
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_target_: flow_modules.aiflows.HumanStandardInputFlowModule.HumanStandardInputFlow.instantiate_from_default_config
|
| 2 |
+
name: "HumanStandardInputFlow"
|
| 3 |
+
description: "Reads input from the user's standard input."
|
| 4 |
+
request_multi_line_input_flag: True
|
| 5 |
+
end_of_input_string: EOI
|
| 6 |
+
query_message_prompt_template:
|
| 7 |
+
_target_: aiflows.prompt_template.JinjaPrompt
|
| 8 |
+
template: |2-
|
| 9 |
+
Please enter your input.
|
| 10 |
+
|
| 11 |
+
What's opinion on this statement?
|
| 12 |
+
{{statement}}
|
| 13 |
+
input_variables: [statement]
|
| 14 |
+
partial_variables: {}
|