Tachi67 commited on
Commit
e1e16e7
·
1 Parent(s): a8c763c

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +61 -3
README.md CHANGED
@@ -1,3 +1,61 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Table of Contents
2
+
3
+ * [ContentWritrerFlow](#ContentWritrerFlow)
4
+ * [ContentWriterFlow](#ContentWritrerFlow.ContentWriterFlow)
5
+ * [detect\_finish\_or\_continue](#ContentWritrerFlow.ContentWriterFlow.detect_finish_or_continue)
6
+ * [\_\_init\_\_](#__init__)
7
+
8
+ <a id="ContentWritrerFlow"></a>
9
+
10
+ # ContentWritrerFlow
11
+
12
+ <a id="ContentWritrerFlow.ContentWriterFlow"></a>
13
+
14
+ ## ContentWriterFlow Objects
15
+
16
+ ```python
17
+ class ContentWriterFlow(CircularFlow, ABC)
18
+ ```
19
+
20
+ This is an abstract class for writing content (plan, code)
21
+ The ContentWriterFlow is made of a controller and a branching executor.
22
+ Each time the controller is called, the controller decides whether to write content
23
+ or to finish. If the content writer executor is called, the executor will write content
24
+ in an interactive way, finally, the user is able to give feedback to the content, so that
25
+ the controller can decide whether to write content again or to finish.
26
+
27
+ *Configuration Parameters*:
28
+ - `name`
29
+ - `description`
30
+ - `max_round`
31
+ - `subflows_config`:
32
+ - `Controller` (dict): The controller that decides whether to write content or to finish.
33
+ - `Executor` (dict): A branching flow, we configure the specific executor in the subflows of the executor.
34
+ - `early_exit_key`: The key of the early exit variable in the output payload of the executor.
35
+ - `topology`: The topology of the subflows, this describes the I/O interface instances.
36
+
37
+ *Input Interface*:
38
+ - `goal`
39
+
40
+ *Output Interface*:
41
+ - `answer`
42
+ - `status`
43
+
44
+ <a id="ContentWritrerFlow.ContentWriterFlow.detect_finish_or_continue"></a>
45
+
46
+ #### detect\_finish\_or\_continue
47
+
48
+ ```python
49
+ @abstractmethod
50
+ @CircularFlow.output_msg_payload_processor
51
+ def detect_finish_or_continue(output_payload: Dict[str, Any],
52
+ src_flow) -> Dict[str, Any]
53
+ ```
54
+
55
+ 1. Writing content to file;
56
+ 2. Finish and early exit.
57
+
58
+ <a id="__init__"></a>
59
+
60
+ # \_\_init\_\_
61
+