migrate to sync dep

#1
by yeeef - opened
.gitignore CHANGED
@@ -142,4 +142,8 @@ ENV/
142
  # media files
143
  .png
144
  .jpg
145
- .pdf
 
 
 
 
 
142
  # media files
143
  .png
144
  .jpg
145
+ .pdf
146
+
147
+
148
+ # auto-generated by flows, all synced modules will be ignored by default
149
+ FLOW_MODULE_ID
CF_CodeCollab.yaml CHANGED
@@ -22,7 +22,7 @@ output_keys:
22
  - "code"
23
 
24
  subflows_config:
25
- - _target_: martinjosifoski.CC_flows.CF_Code..instantiate_from_default_config
26
  overrides:
27
  name: "CodeGenerator"
28
  model_name: "gpt-4"
 
22
  - "code"
23
 
24
  subflows_config:
25
+ - _target_: martinjosifoski.CC_flows.CF_Code.instantiate_from_default_config
26
  overrides:
27
  name: "CodeGenerator"
28
  model_name: "gpt-4"
CF_CodeCriticWrongAttempt.py CHANGED
@@ -1,8 +1,4 @@
1
- import os
2
-
3
- from flows.flow_verse import load_class
4
- repository_id = os.environ.get("OpenAIChatAtomicFlow")
5
- OpenAIChatAtomicFlow = load_class(repository_id, "OpenAIChatAtomicFlow")
6
 
7
 
8
  class CF_CodeCriticWrongAttempt(OpenAIChatAtomicFlow):
 
1
+ from martinjosifoski.OpenAIChatAtomicFlow import OpenAIChatAtomicFlow
 
 
 
 
2
 
3
 
4
  class CF_CodeCriticWrongAttempt(OpenAIChatAtomicFlow):
CF_CodeCriticWrongAttemptWithPlan.py CHANGED
@@ -1,8 +1,5 @@
1
- import os
2
 
3
- from flows.flow_verse import load_class
4
- repository_id = os.environ.get("OpenAIChatAtomicFlow")
5
- OpenAIChatAtomicFlow = load_class(repository_id, "OpenAIChatAtomicFlow")
6
 
7
 
8
  class CF_CodeCriticWrongAttemptWithPlan(OpenAIChatAtomicFlow):
 
1
+ from martinjosifoski.OpenAIChatAtomicFlow import OpenAIChatAtomicFlow
2
 
 
 
 
3
 
4
 
5
  class CF_CodeCriticWrongAttemptWithPlan(OpenAIChatAtomicFlow):
CF_CodeDebugCollab.yaml CHANGED
@@ -23,9 +23,7 @@ output_keys:
23
  - "code"
24
 
25
  subflows_config:
26
- - _target_: flows.flow_verse.instantiate_flow
27
- repository_id: ${oc.env:CC_FLOWS}
28
- class_name: CF_Code
29
  overrides:
30
  name: "CodeGenerator"
31
  model_name: "gpt-4"
@@ -66,6 +64,4 @@ subflows_config:
66
  output_keys:
67
  - "code"
68
  - "end_of_interaction"
69
- - _target_: flows.flow_verse.instantiate_flow
70
- repository_id: ${oc.env:CC_FLOWS}
71
- class_name: CF_CodeDebugCritic
 
23
  - "code"
24
 
25
  subflows_config:
26
+ - _target_: martinjosifoski.CC_flows.CF_Code.instantiate_from_default_config
 
 
27
  overrides:
28
  name: "CodeGenerator"
29
  model_name: "gpt-4"
 
64
  output_keys:
65
  - "code"
66
  - "end_of_interaction"
67
+ - _target_: martinjosifoski.CC_flows.CF_CodeDebugCritic.instantiate_from_default_config
 
 
CF_CodeDebugCollabWithPlan.yaml CHANGED
@@ -24,9 +24,7 @@ output_keys:
24
  - "code"
25
 
26
  subflows_config:
27
- - _target_: flows.flow_verse.instantiate_flow
28
- repository_id: ${oc.env:CC_FLOWS}
29
- class_name: CF_CodeWithPlan
30
  overrides:
31
  name: "CodeGenerator"
32
  model_name: "gpt-4"
@@ -67,6 +65,4 @@ subflows_config:
67
  output_keys:
68
  - "code"
69
  - "end_of_interaction"
70
- - _target_: flows.flow_verse.instantiate_flow
71
- repository_id: ${oc.env:CC_FLOWS}
72
- class_name: CF_CodeDebugCriticWithPlan
 
24
  - "code"
25
 
26
  subflows_config:
27
+ - _target_: martinjosifoski.CC_flows.CF_CodeWithPlan.instantiate_from_default_config
 
 
28
  overrides:
29
  name: "CodeGenerator"
30
  model_name: "gpt-4"
 
65
  output_keys:
66
  - "code"
67
  - "end_of_interaction"
68
+ - _target_: martinjosifoski.CC_flows.CF_CodeDebugCriticWithPlan.instantiate_from_default_config
 
 
CF_CodeDebugCritic.yaml CHANGED
@@ -25,11 +25,7 @@ output_keys:
25
  - "code_feedback"
26
 
27
  subflows_config:
28
- - _target_: flows.flow_verse.instantiate_flow
29
- repository_id: ${oc.env:CC_FLOWS}
30
- class_name: CF_CodeTesting
31
  overrides:
32
  name: "CodeTestingCritic"
33
- - _target_: flows.flow_verse.instantiate_flow
34
- repository_id: ${oc.env:CC_FLOWS}
35
- class_name: CF_CodeCriticWrongAttempt
 
25
  - "code_feedback"
26
 
27
  subflows_config:
28
+ - _target_: martinjosifoski.CC_flows.CF_CodeTesting.instantiate_from_default_config
 
 
29
  overrides:
30
  name: "CodeTestingCritic"
31
+ - _target_: martinjosifoski.CC_flows.CF_CodeCriticWrongAttempt.instantiate_from_default_config
 
 
CF_CodeDebugCriticWithPlan.yaml CHANGED
@@ -26,11 +26,7 @@ output_keys:
26
  - "code_feedback"
27
 
28
  subflows_config:
29
- - _target_: flows.flow_verse.instantiate_flow
30
- repository_id: ${oc.env:CC_FLOWS}
31
- class_name: CF_CodeTesting
32
  overrides:
33
  name: "CodeTestingCritic"
34
- - _target_: flows.flow_verse.instantiate_flow
35
- repository_id: ${oc.env:CC_FLOWS}
36
- class_name: CF_CodeCriticWrongAttemptWithPlan
 
26
  - "code_feedback"
27
 
28
  subflows_config:
29
+ - _target_: martinjosifoski.CC_flows.CF_CodeTesting.instantiate_from_default_config
 
 
30
  overrides:
31
  name: "CodeTestingCritic"
32
+ - _target_: martinjosifoski.CC_flows.CF_CodeCriticWrongAttemptWithPlan.instantiate_from_default_config
 
 
CF_CodeWithPlan.py CHANGED
@@ -1,8 +1,5 @@
1
- import os
2
 
3
- from flows.flow_verse import load_class
4
- repository_id = os.environ.get("OpenAIChatAtomicFlow")
5
- OpenAIChatAtomicFlow = load_class(repository_id, "OpenAIChatAtomicFlow")
6
 
7
 
8
  class CF_CodeWithPlan(OpenAIChatAtomicFlow):
 
1
+ from martinjosifoski.OpenAIChatAtomicFlow import OpenAIChatAtomicFlow
2
 
 
 
 
3
 
4
 
5
  class CF_CodeWithPlan(OpenAIChatAtomicFlow):
CF_Plan.py CHANGED
@@ -1,8 +1,4 @@
1
- import os
2
- from flows.flow_verse import load_class
3
- repository_id = os.environ.get("OpenAIChatAtomicFlow")
4
- OpenAIChatAtomicFlow = load_class(repository_id, "OpenAIChatAtomicFlow")
5
-
6
 
7
  class CF_Plan(OpenAIChatAtomicFlow):
8
  def __init__(self, **kwargs):
 
1
+ from martinjosifoski.OpenAIChatAtomicFlow import OpenAIChatAtomicFlow
 
 
 
 
2
 
3
  class CF_Plan(OpenAIChatAtomicFlow):
4
  def __init__(self, **kwargs):
CF_PlanCollab.yaml CHANGED
@@ -22,9 +22,7 @@ output_keys:
22
  - "plan"
23
 
24
  subflows_config:
25
- - _target_: flows.flow_verse.instantiate_flow
26
- repository_id: ${oc.env:CC_FLOWS}
27
- class_name: CF_Plan
28
  overrides:
29
  name: "PlanGenerator"
30
  human_message_prompt_template:
@@ -62,9 +60,7 @@ subflows_config:
62
  output_keys:
63
  - "plan"
64
  - "end_of_interaction"
65
- - _target_: flows.flow_verse.instantiate_flow
66
- repository_id: ${oc.env:CC_FLOWS}
67
- class_name: CF_PlanCritic
68
  overrides:
69
  name: PlanCritic
70
  output_data_transformations:
 
22
  - "plan"
23
 
24
  subflows_config:
25
+ - _target_: martinjosifoski.CC_flows.CF_Plan.instantiate_from_default_config
 
 
26
  overrides:
27
  name: "PlanGenerator"
28
  human_message_prompt_template:
 
60
  output_keys:
61
  - "plan"
62
  - "end_of_interaction"
63
+ - _target_: martinjosifoski.CC_flows.CF_PlanCritic.instantiate_from_default_config
 
 
64
  overrides:
65
  name: PlanCritic
66
  output_data_transformations:
CF_PlanCollab_Code.yaml CHANGED
@@ -18,9 +18,5 @@ output_keys:
18
  - "code"
19
 
20
  subflows_config:
21
- - _target_: flows.flow_verse.instantiate_flow
22
- repository_id: ${oc.env:CC_FLOWS}
23
- class_name: CF_PlanCollab
24
- - _target_: flows.flow_verse.instantiate_flow
25
- repository_id: ${oc.env:CC_FLOWS}
26
- class_name: CF_CodeWithPlan
 
18
  - "code"
19
 
20
  subflows_config:
21
+ - _target_: martinjosifoski.CC_flows.CF_PlanCollab.instantiate_from_default_config
22
+ - _target_: martinjosifoski.CC_flows.CF_CodeWithPlan.instantiate_from_default_config
 
 
 
 
CF_PlanCritic.py CHANGED
@@ -1,8 +1,4 @@
1
- import os
2
-
3
- from flows.flow_verse import load_class
4
- repository_id = os.environ.get("OpenAIChatAtomicFlow")
5
- OpenAIChatAtomicFlow = load_class(repository_id, "OpenAIChatAtomicFlow")
6
 
7
 
8
  class CF_PlanCritic(OpenAIChatAtomicFlow):
 
1
+ from martinjosifoski.OpenAIChatAtomicFlow import OpenAIChatAtomicFlow
 
 
 
 
2
 
3
 
4
  class CF_PlanCritic(OpenAIChatAtomicFlow):
CF_PlanReflect.yaml CHANGED
@@ -22,9 +22,7 @@ output_keys:
22
  - "plan"
23
 
24
  subflows_config:
25
- - _target_: flows.flow_verse.instantiate_flow
26
- repository_id: ${oc.env:CC_FLOWS}
27
- class_name: CF_Plan
28
  overrides:
29
  name: "PlanGenerator_Flow"
30
  model_name: "gpt-4"
@@ -49,7 +47,5 @@ subflows_config:
49
  - "plan"
50
  - "end_of_interaction"
51
 
52
- - _target_: flows.flow_verse.instantiate_flow
53
- repository_id: ${oc.env:CC_FLOWS}
54
- class_name: FixedReply_PlanReflect
55
 
 
22
  - "plan"
23
 
24
  subflows_config:
25
+ - _target_: martinjosifoski.CC_flows.CF_Plan.instantiate_from_default_config
 
 
26
  overrides:
27
  name: "PlanGenerator_Flow"
28
  model_name: "gpt-4"
 
47
  - "plan"
48
  - "end_of_interaction"
49
 
50
+ - _target_: martinjosifoski.CC_flows.FixedReply_PlanReflect.instantiate_from_default_config
 
 
51
 
CF_PlanReflect_Code.yaml CHANGED
@@ -18,9 +18,5 @@ output_keys:
18
  - "code"
19
 
20
  subflows_config:
21
- - _target_: flows.flow_verse.instantiate_flow
22
- repository_id: ${oc.env:CC_FLOWS}
23
- class_name: CF_PlanReflect
24
- - _target_: flows.flow_verse.instantiate_flow
25
- repository_id: ${oc.env:CC_FLOWS}
26
- class_name: CF_CodeWithPlan
 
18
  - "code"
19
 
20
  subflows_config:
21
+ - _target_: martinjosifoski.CC_flows.CF_PlanReflect.instantiate_from_default_config
22
+ - _target_: martinjosifoski.CC_flows.CF_CodeWithPlan.instantiate_from_default_config
 
 
 
 
CF_Plan_Code.yaml CHANGED
@@ -18,13 +18,9 @@ output_keys:
18
  - "code"
19
 
20
  subflows_config:
21
- - _target_: flows.flow_verse.instantiate_flow
22
- repository_id: ${oc.env:CC_FLOWS}
23
- class_name: CF_Plan
24
  overrides:
25
  model_name: "gpt-4"
26
- - _target_: flows.flow_verse.instantiate_flow
27
- repository_id: ${oc.env:CC_FLOWS}
28
- class_name: CF_CodeWithPlan
29
  overrides:
30
  model_name: "gpt-4"
 
18
  - "code"
19
 
20
  subflows_config:
21
+ - _target_: martinjosifoski.CC_flows.CF_Plan.instantiate_from_default_config
 
 
22
  overrides:
23
  model_name: "gpt-4"
24
+ - _target_: martinjosifoski.CC_flows.CF_CodeWithPlan.instantiate_from_default_config
 
 
25
  overrides:
26
  model_name: "gpt-4"
__init__.py CHANGED
@@ -21,30 +21,30 @@ from .CF_CodeCritic import CF_CodeCritic
21
  from .CF_CodeCollab import CF_CodeCollab
22
 
23
  # cf-plan-code (and cf-plan_oracle-code)
24
- # from .CF_Plan import CF_Plan
25
- # from .CF_CodeWithPlan import CF_CodeWithPlan
26
- # from .CF_Plan_Code import CF_Plan_Code
27
- #
28
  # # cf-plan_reflect-code
29
- # from .FixedReply_PlanReflect import FixedReply_PlanReflect
30
- # from .CF_PlanReflect import CF_PlanReflect
31
- # from .CF_PlanReflect_Code import CF_PlanReflect_Code
32
  #
33
  # # cf-plan_collab-code
34
- # from .CF_PlanCritic import CF_PlanCritic
35
- # from .CF_PlanCollab import CF_PlanCollab
36
- # from .CF_PlanCollab_Code import CF_PlanCollab_Code
37
- #
38
  # cf-code_debug
39
  from .CF_CodeTesting import CF_CodeTesting
40
  from .CF_CodeDebug import CF_CodeDebug
41
 
42
  # # cf-code_debug_collab
43
- # from .CF_CodeCriticWrongAttempt import CF_CodeCriticWrongAttempt
44
- # from .CF_CodeDebugCritic import CF_CodeDebugCritic
45
- # from .CF_CodeDebugCollab import CF_CodeDebugCollab
46
  #
47
  # # cf-plan_oracle-code_debug_collab
48
- # from .CF_CodeCriticWrongAttemptWithPlan import CF_CodeCriticWrongAttemptWithPlan
49
- # from .CF_CodeDebugCriticWithPlan import CF_CodeDebugCriticWithPlan
50
- # from .CF_CodeDebugCollabWithPlan import CF_CodeDebugCollabWithPlan
 
21
  from .CF_CodeCollab import CF_CodeCollab
22
 
23
  # cf-plan-code (and cf-plan_oracle-code)
24
+ from .CF_Plan import CF_Plan
25
+ from .CF_CodeWithPlan import CF_CodeWithPlan
26
+ from .CF_Plan_Code import CF_Plan_Code
27
+
28
  # # cf-plan_reflect-code
29
+ from .FixedReply_PlanReflect import FixedReply_PlanReflect
30
+ from .CF_PlanReflect import CF_PlanReflect
31
+ from .CF_PlanReflect_Code import CF_PlanReflect_Code
32
  #
33
  # # cf-plan_collab-code
34
+ from .CF_PlanCritic import CF_PlanCritic
35
+ from .CF_PlanCollab import CF_PlanCollab
36
+ from .CF_PlanCollab_Code import CF_PlanCollab_Code
37
+
38
  # cf-code_debug
39
  from .CF_CodeTesting import CF_CodeTesting
40
  from .CF_CodeDebug import CF_CodeDebug
41
 
42
  # # cf-code_debug_collab
43
+ from .CF_CodeCriticWrongAttempt import CF_CodeCriticWrongAttempt
44
+ from .CF_CodeDebugCritic import CF_CodeDebugCritic
45
+ from .CF_CodeDebugCollab import CF_CodeDebugCollab
46
  #
47
  # # cf-plan_oracle-code_debug_collab
48
+ from .CF_CodeCriticWrongAttemptWithPlan import CF_CodeCriticWrongAttemptWithPlan
49
+ from .CF_CodeDebugCriticWithPlan import CF_CodeDebugCriticWithPlan
50
+ from .CF_CodeDebugCollabWithPlan import CF_CodeDebugCollabWithPlan