Commit ·
4961d67
1
Parent(s): e54a1f1
Bring CF flows up-to-date with library.
Browse files- CF_Code.py +4 -3
- CF_CodeCollab.yaml +16 -4
- CF_CodeCritic.py +5 -2
- CF_CodeCritic.yaml +0 -4
- CF_CodeReflect.yaml +13 -13
- CF_CodeWithPlan.py +4 -2
- CF_CodeWithPlan.yaml +0 -1
- CF_Plan.py +3 -2
- CF_Plan.yaml +0 -1
- CF_PlanCollab.yaml +12 -10
- CF_PlanCollab_Code.yaml +10 -5
- CF_PlanCritic.py +4 -2
- CF_PlanCritic.yaml +0 -1
- CF_PlanReflect.yaml +8 -7
- CF_PlanReflect_Code.yaml +10 -5
- CF_Plan_Code.yaml +13 -4
- __init__.py +14 -10
CF_Code.py
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
-
|
| 2 |
-
OpenAIChatAtomicFlow = load_class("martinjosifoski/OpenAIChatAtomicFlow", "OpenAIChatAtomicFlow")
|
| 3 |
-
# OpenAIChatAtomicFlow = load_class("/Users/josifosk/Documents/PhD/OpenAIChatAtomicFlow", "OpenAIChatAtomicFlow")
|
| 4 |
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
class CF_Code(OpenAIChatAtomicFlow):
|
| 7 |
def __init__(self, **kwargs):
|
|
|
|
| 1 |
+
import os
|
|
|
|
|
|
|
| 2 |
|
| 3 |
+
from flows.flow_verse import load_class
|
| 4 |
+
OpenAIChatAtomicFlow_repository_id = os.environ.get("OpenAIChatAtomicFlow")
|
| 5 |
+
OpenAIChatAtomicFlow = load_class(OpenAIChatAtomicFlow_repository_id, "OpenAIChatAtomicFlow")
|
| 6 |
|
| 7 |
class CF_Code(OpenAIChatAtomicFlow):
|
| 8 |
def __init__(self, **kwargs):
|
CF_CodeCollab.yaml
CHANGED
|
@@ -2,6 +2,16 @@ name: "CodeCollab_Flow"
|
|
| 2 |
verbose: True
|
| 3 |
description: "ToDO: add description"
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
reset_generator_every_round: False
|
| 6 |
reset_critic_every_round: True
|
| 7 |
max_rounds: 2 # ToDO: To increase to 4
|
|
@@ -9,8 +19,7 @@ early_exit_key: "end_of_interaction"
|
|
| 9 |
|
| 10 |
subflows_config:
|
| 11 |
- _target_: flows.flow_verse.instantiate_flow
|
| 12 |
-
|
| 13 |
-
repository_id: "martinjosifoski/CC_flows"
|
| 14 |
class_name: CF_Code
|
| 15 |
overrides:
|
| 16 |
name: "CodeGenerator"
|
|
@@ -42,8 +51,11 @@ subflows_config:
|
|
| 42 |
- "code"
|
| 43 |
- "end_of_interaction"
|
| 44 |
- _target_: flows.flow_verse.instantiate_flow
|
| 45 |
-
repository_id:
|
| 46 |
-
# repository_id: "/Users/josifosk/Documents/PhD/CC_flows"
|
| 47 |
class_name: CF_CodeCritic
|
| 48 |
overrides:
|
| 49 |
name: CodeCritic
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
verbose: True
|
| 3 |
description: "ToDO: add description"
|
| 4 |
|
| 5 |
+
input_keys:
|
| 6 |
+
- "problem_description"
|
| 7 |
+
- "input_description"
|
| 8 |
+
- "output_description"
|
| 9 |
+
- "io_examples_and_explanation"
|
| 10 |
+
|
| 11 |
+
output_keys:
|
| 12 |
+
- "code"
|
| 13 |
+
- "end_of_interaction"
|
| 14 |
+
|
| 15 |
reset_generator_every_round: False
|
| 16 |
reset_critic_every_round: True
|
| 17 |
max_rounds: 2 # ToDO: To increase to 4
|
|
|
|
| 19 |
|
| 20 |
subflows_config:
|
| 21 |
- _target_: flows.flow_verse.instantiate_flow
|
| 22 |
+
repository_id: ${oc.env:CC_FLOWS}
|
|
|
|
| 23 |
class_name: CF_Code
|
| 24 |
overrides:
|
| 25 |
name: "CodeGenerator"
|
|
|
|
| 51 |
- "code"
|
| 52 |
- "end_of_interaction"
|
| 53 |
- _target_: flows.flow_verse.instantiate_flow
|
| 54 |
+
repository_id: ${oc.env:CC_FLOWS}
|
|
|
|
| 55 |
class_name: CF_CodeCritic
|
| 56 |
overrides:
|
| 57 |
name: CodeCritic
|
| 58 |
+
outputs_transformations:
|
| 59 |
+
- _target_: flows.outputs_transformations.Rename
|
| 60 |
+
old_key2new_key:
|
| 61 |
+
raw_response: "query"
|
CF_CodeCritic.py
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
|
|
|
|
|
| 1 |
from flows.flow_verse import load_class
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
|
| 5 |
|
| 6 |
class CF_CodeCritic(OpenAIChatAtomicFlow):
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
|
| 3 |
from flows.flow_verse import load_class
|
| 4 |
+
OpenAIChatAtomicFlow_repository_id = os.environ.get("OpenAIChatAtomicFlow")
|
| 5 |
+
OpenAIChatAtomicFlow = load_class(OpenAIChatAtomicFlow_repository_id, "OpenAIChatAtomicFlow")
|
| 6 |
+
|
| 7 |
|
| 8 |
|
| 9 |
class CF_CodeCritic(OpenAIChatAtomicFlow):
|
CF_CodeCritic.yaml
CHANGED
|
@@ -73,7 +73,3 @@ input_keys:
|
|
| 73 |
- "output_description"
|
| 74 |
- "io_examples_and_explanation"
|
| 75 |
- "code"
|
| 76 |
-
- "api_key"
|
| 77 |
-
|
| 78 |
-
output_keys:
|
| 79 |
-
- "query"
|
|
|
|
| 73 |
- "output_description"
|
| 74 |
- "io_examples_and_explanation"
|
| 75 |
- "code"
|
|
|
|
|
|
|
|
|
|
|
|
CF_CodeReflect.yaml
CHANGED
|
@@ -2,6 +2,11 @@ name: "CodeReflect_Flow"
|
|
| 2 |
verbose: True
|
| 3 |
description: "ToDO: add description"
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
input_keys:
|
| 6 |
- "problem_description"
|
| 7 |
- "input_description"
|
|
@@ -10,37 +15,32 @@ input_keys:
|
|
| 10 |
|
| 11 |
output_keys:
|
| 12 |
- "code"
|
| 13 |
-
- "end_of_interaction"
|
| 14 |
-
|
| 15 |
-
reset_generator_every_round: False
|
| 16 |
-
reset_critic_every_round: True
|
| 17 |
-
max_rounds: 2 # ToDo: To increase to 4
|
| 18 |
-
early_exit_key: "end_of_interaction"
|
| 19 |
|
| 20 |
subflows_config:
|
| 21 |
- _target_: flows.flow_verse.instantiate_flow
|
| 22 |
-
repository_id:
|
| 23 |
-
# repository_id: "/Users/josifosk/Documents/PhD/CC_flows"
|
| 24 |
class_name: CF_Code
|
| 25 |
overrides:
|
| 26 |
name: "CodeGenerator"
|
| 27 |
model_name: "gpt-4"
|
| 28 |
-
output_keys:
|
| 29 |
-
- "code"
|
| 30 |
-
- "end_of_interaction"
|
| 31 |
response_annotators:
|
| 32 |
end_of_interaction_annotator:
|
| 33 |
_target_: flows.message_annotators.EndOfInteraction
|
| 34 |
end_of_interaction_message: "Final answer"
|
| 35 |
key: "end_of_interaction"
|
| 36 |
verbose: True
|
|
|
|
|
|
|
|
|
|
| 37 |
- _target_: flows.base_flows.FixedReplyAtomicFlow.instantiate_with_overrides
|
| 38 |
overrides:
|
| 39 |
name: "CodeFixedReplyCritic"
|
| 40 |
description: "ToDo: Add description"
|
| 41 |
input_keys: []
|
| 42 |
-
|
| 43 |
-
-
|
|
|
|
|
|
|
| 44 |
fixed_reply: |2-
|
| 45 |
Consider the problem statement and the last proposed solution. Are you sure that the solution is provided in the requested format, and crucially, solves the problem?
|
| 46 |
If that is not the case, provide the corrected version of the code in the following format:
|
|
|
|
| 2 |
verbose: True
|
| 3 |
description: "ToDO: add description"
|
| 4 |
|
| 5 |
+
reset_generator_every_round: False
|
| 6 |
+
reset_critic_every_round: True
|
| 7 |
+
max_rounds: 2 # ToDo: To increase to 4
|
| 8 |
+
early_exit_key: "end_of_interaction"
|
| 9 |
+
|
| 10 |
input_keys:
|
| 11 |
- "problem_description"
|
| 12 |
- "input_description"
|
|
|
|
| 15 |
|
| 16 |
output_keys:
|
| 17 |
- "code"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
subflows_config:
|
| 20 |
- _target_: flows.flow_verse.instantiate_flow
|
| 21 |
+
repository_id: ${oc.env:CC_FLOWS}
|
|
|
|
| 22 |
class_name: CF_Code
|
| 23 |
overrides:
|
| 24 |
name: "CodeGenerator"
|
| 25 |
model_name: "gpt-4"
|
|
|
|
|
|
|
|
|
|
| 26 |
response_annotators:
|
| 27 |
end_of_interaction_annotator:
|
| 28 |
_target_: flows.message_annotators.EndOfInteraction
|
| 29 |
end_of_interaction_message: "Final answer"
|
| 30 |
key: "end_of_interaction"
|
| 31 |
verbose: True
|
| 32 |
+
output_keys:
|
| 33 |
+
- "code"
|
| 34 |
+
- "end_of_interaction"
|
| 35 |
- _target_: flows.base_flows.FixedReplyAtomicFlow.instantiate_with_overrides
|
| 36 |
overrides:
|
| 37 |
name: "CodeFixedReplyCritic"
|
| 38 |
description: "ToDo: Add description"
|
| 39 |
input_keys: []
|
| 40 |
+
outputs_transformations:
|
| 41 |
+
- _target_: flows.outputs_transformations.Rename
|
| 42 |
+
old_key2new_key:
|
| 43 |
+
raw_response: "query"
|
| 44 |
fixed_reply: |2-
|
| 45 |
Consider the problem statement and the last proposed solution. Are you sure that the solution is provided in the requested format, and crucially, solves the problem?
|
| 46 |
If that is not the case, provide the corrected version of the code in the following format:
|
CF_CodeWithPlan.py
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
|
|
|
|
|
| 1 |
from flows.flow_verse import load_class
|
| 2 |
-
|
| 3 |
-
|
| 4 |
|
| 5 |
|
| 6 |
class CF_CodeWithPlan(OpenAIChatAtomicFlow):
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
|
| 3 |
from flows.flow_verse import load_class
|
| 4 |
+
OpenAIChatAtomicFlow_repository_id = os.environ.get("OpenAIChatAtomicFlow")
|
| 5 |
+
OpenAIChatAtomicFlow = load_class(OpenAIChatAtomicFlow_repository_id, "OpenAIChatAtomicFlow")
|
| 6 |
|
| 7 |
|
| 8 |
class CF_CodeWithPlan(OpenAIChatAtomicFlow):
|
CF_CodeWithPlan.yaml
CHANGED
|
@@ -77,7 +77,6 @@ input_keys:
|
|
| 77 |
- "output_description"
|
| 78 |
- "io_examples_and_explanation"
|
| 79 |
- "plan"
|
| 80 |
-
- "api_key"
|
| 81 |
|
| 82 |
output_keys:
|
| 83 |
- "code"
|
|
|
|
| 77 |
- "output_description"
|
| 78 |
- "io_examples_and_explanation"
|
| 79 |
- "plan"
|
|
|
|
| 80 |
|
| 81 |
output_keys:
|
| 82 |
- "code"
|
CF_Plan.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
|
|
| 1 |
from flows.flow_verse import load_class
|
| 2 |
-
|
| 3 |
-
|
| 4 |
|
| 5 |
|
| 6 |
class CF_Plan(OpenAIChatAtomicFlow):
|
|
|
|
| 1 |
+
import os
|
| 2 |
from flows.flow_verse import load_class
|
| 3 |
+
OpenAIChatAtomicFlow_repository_id = os.environ.get("OpenAIChatAtomicFlow")
|
| 4 |
+
OpenAIChatAtomicFlow = load_class(OpenAIChatAtomicFlow_repository_id, "OpenAIChatAtomicFlow")
|
| 5 |
|
| 6 |
|
| 7 |
class CF_Plan(OpenAIChatAtomicFlow):
|
CF_Plan.yaml
CHANGED
|
@@ -71,7 +71,6 @@ input_keys:
|
|
| 71 |
- "input_description"
|
| 72 |
- "output_description"
|
| 73 |
- "io_examples_and_explanation"
|
| 74 |
-
- "api_key"
|
| 75 |
|
| 76 |
output_keys:
|
| 77 |
- "plan"
|
|
|
|
| 71 |
- "input_description"
|
| 72 |
- "output_description"
|
| 73 |
- "io_examples_and_explanation"
|
|
|
|
| 74 |
|
| 75 |
output_keys:
|
| 76 |
- "plan"
|
CF_PlanCollab.yaml
CHANGED
|
@@ -2,25 +2,24 @@ name: "PlanCollab_Flow"
|
|
| 2 |
verbose: True
|
| 3 |
description: "ToDO: add description"
|
| 4 |
|
| 5 |
-
reset_generator_every_round: False
|
| 6 |
-
reset_critic_every_round: True
|
| 7 |
-
max_rounds: 2 # ToDo: To increase to 4
|
| 8 |
-
early_exit_key: "end_of_interaction"
|
| 9 |
-
|
| 10 |
input_keys:
|
| 11 |
- "problem_description"
|
| 12 |
- "input_description"
|
| 13 |
- "output_description"
|
| 14 |
- "io_examples_and_explanation"
|
| 15 |
-
- "api_key"
|
| 16 |
|
| 17 |
output_keys:
|
| 18 |
- "plan"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
subflows_config:
|
| 21 |
- _target_: flows.flow_verse.instantiate_flow
|
| 22 |
-
repository_id:
|
| 23 |
-
# repository_id: "/Users/josifosk/Documents/PhD/CC_flows"
|
| 24 |
class_name: CF_Plan
|
| 25 |
overrides:
|
| 26 |
name: "PlanGenerator"
|
|
@@ -51,8 +50,11 @@ subflows_config:
|
|
| 51 |
- "plan"
|
| 52 |
- "end_of_interaction"
|
| 53 |
- _target_: flows.flow_verse.instantiate_flow
|
| 54 |
-
repository_id:
|
| 55 |
-
# repository_id: "/Users/josifosk/Documents/PhD/CC_flows"
|
| 56 |
class_name: CF_PlanCritic
|
| 57 |
overrides:
|
| 58 |
name: PlanCritic
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
verbose: True
|
| 3 |
description: "ToDO: add description"
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
input_keys:
|
| 6 |
- "problem_description"
|
| 7 |
- "input_description"
|
| 8 |
- "output_description"
|
| 9 |
- "io_examples_and_explanation"
|
|
|
|
| 10 |
|
| 11 |
output_keys:
|
| 12 |
- "plan"
|
| 13 |
+
- "end_of_interaction"
|
| 14 |
+
|
| 15 |
+
reset_generator_every_round: False
|
| 16 |
+
reset_critic_every_round: True
|
| 17 |
+
max_rounds: 2 # ToDo: To increase to 4
|
| 18 |
+
early_exit_key: "end_of_interaction"
|
| 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 |
name: "PlanGenerator"
|
|
|
|
| 50 |
- "plan"
|
| 51 |
- "end_of_interaction"
|
| 52 |
- _target_: flows.flow_verse.instantiate_flow
|
| 53 |
+
repository_id: ${oc.env:CC_FLOWS}
|
|
|
|
| 54 |
class_name: CF_PlanCritic
|
| 55 |
overrides:
|
| 56 |
name: PlanCritic
|
| 57 |
+
outputs_transformations:
|
| 58 |
+
- _target_: flows.outputs_transformations.Rename
|
| 59 |
+
old_key2new_key:
|
| 60 |
+
raw_response: "query"
|
CF_PlanCollab_Code.yaml
CHANGED
|
@@ -1,14 +1,19 @@
|
|
| 1 |
name: "PlanCollab_Code"
|
| 2 |
description: "ToDO: add description"
|
| 3 |
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
subflows_config:
|
| 7 |
- _target_: flows.flow_verse.instantiate_flow
|
| 8 |
-
repository_id:
|
| 9 |
-
# repository_id: "/Users/josifosk/Documents/PhD/CC_flows"
|
| 10 |
class_name: CF_PlanCollab
|
| 11 |
- _target_: flows.flow_verse.instantiate_flow
|
| 12 |
-
repository_id:
|
| 13 |
-
# repository_id: "/Users/josifosk/Documents/PhD/CC_flows"
|
| 14 |
class_name: CF_CodeWithPlan
|
|
|
|
| 1 |
name: "PlanCollab_Code"
|
| 2 |
description: "ToDO: add description"
|
| 3 |
|
| 4 |
+
input_keys:
|
| 5 |
+
- "problem_description"
|
| 6 |
+
- "input_description"
|
| 7 |
+
- "output_description"
|
| 8 |
+
- "io_examples_and_explanation"
|
| 9 |
+
|
| 10 |
+
output_keys:
|
| 11 |
+
- "code"
|
| 12 |
|
| 13 |
subflows_config:
|
| 14 |
- _target_: flows.flow_verse.instantiate_flow
|
| 15 |
+
repository_id: ${oc.env:CC_FLOWS}
|
|
|
|
| 16 |
class_name: CF_PlanCollab
|
| 17 |
- _target_: flows.flow_verse.instantiate_flow
|
| 18 |
+
repository_id: ${oc.env:CC_FLOWS}
|
|
|
|
| 19 |
class_name: CF_CodeWithPlan
|
CF_PlanCritic.py
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
|
|
|
|
|
| 1 |
from flows.flow_verse import load_class
|
| 2 |
-
|
| 3 |
-
|
| 4 |
|
| 5 |
|
| 6 |
class CF_PlanCritic(OpenAIChatAtomicFlow):
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
|
| 3 |
from flows.flow_verse import load_class
|
| 4 |
+
OpenAIChatAtomicFlow_repository_id = os.environ.get("OpenAIChatAtomicFlow")
|
| 5 |
+
OpenAIChatAtomicFlow = load_class(OpenAIChatAtomicFlow_repository_id, "OpenAIChatAtomicFlow")
|
| 6 |
|
| 7 |
|
| 8 |
class CF_PlanCritic(OpenAIChatAtomicFlow):
|
CF_PlanCritic.yaml
CHANGED
|
@@ -72,7 +72,6 @@ input_keys:
|
|
| 72 |
- "output_description"
|
| 73 |
- "io_examples_and_explanation"
|
| 74 |
- "plan"
|
| 75 |
-
- "api_key"
|
| 76 |
|
| 77 |
output_keys:
|
| 78 |
- "query"
|
|
|
|
| 72 |
- "output_description"
|
| 73 |
- "io_examples_and_explanation"
|
| 74 |
- "plan"
|
|
|
|
| 75 |
|
| 76 |
output_keys:
|
| 77 |
- "query"
|
CF_PlanReflect.yaml
CHANGED
|
@@ -4,7 +4,7 @@ description: "ToDO: add description"
|
|
| 4 |
|
| 5 |
reset_generator_every_round: False
|
| 6 |
reset_critic_every_round: True
|
| 7 |
-
max_rounds: 2 #
|
| 8 |
early_exit_key: "end_of_interaction"
|
| 9 |
|
| 10 |
input_keys:
|
|
@@ -12,15 +12,13 @@ input_keys:
|
|
| 12 |
- "input_description"
|
| 13 |
- "output_description"
|
| 14 |
- "io_examples_and_explanation"
|
| 15 |
-
- "api_key"
|
| 16 |
|
| 17 |
output_keys:
|
| 18 |
- "plan"
|
| 19 |
|
| 20 |
subflows_config:
|
| 21 |
- _target_: flows.flow_verse.instantiate_flow
|
| 22 |
-
repository_id:
|
| 23 |
-
# repository_id: "/Users/josifosk/Documents/PhD/CC_flows"
|
| 24 |
class_name: CF_Plan
|
| 25 |
overrides:
|
| 26 |
name: "PlanGenerator"
|
|
@@ -36,10 +34,13 @@ subflows_config:
|
|
| 36 |
- "end_of_interaction"
|
| 37 |
- _target_: flows.base_flows.FixedReplyAtomicFlow.instantiate_with_overrides
|
| 38 |
overrides:
|
| 39 |
-
name: "
|
| 40 |
description: "ToDo: Add description"
|
| 41 |
-
|
| 42 |
-
|
|
|
|
|
|
|
|
|
|
| 43 |
fixed_reply: |2-
|
| 44 |
Consider the problem statement and the last proposed solution. Are you sure that the solution is provided in the requested format, and crucially, solves the problem?
|
| 45 |
If that is not the case, provide the corrected version of the conceptual solution in the following format:
|
|
|
|
| 4 |
|
| 5 |
reset_generator_every_round: False
|
| 6 |
reset_critic_every_round: True
|
| 7 |
+
max_rounds: 2 # ToDo: increase to 4
|
| 8 |
early_exit_key: "end_of_interaction"
|
| 9 |
|
| 10 |
input_keys:
|
|
|
|
| 12 |
- "input_description"
|
| 13 |
- "output_description"
|
| 14 |
- "io_examples_and_explanation"
|
|
|
|
| 15 |
|
| 16 |
output_keys:
|
| 17 |
- "plan"
|
| 18 |
|
| 19 |
subflows_config:
|
| 20 |
- _target_: flows.flow_verse.instantiate_flow
|
| 21 |
+
repository_id: ${oc.env:CC_FLOWS}
|
|
|
|
| 22 |
class_name: CF_Plan
|
| 23 |
overrides:
|
| 24 |
name: "PlanGenerator"
|
|
|
|
| 34 |
- "end_of_interaction"
|
| 35 |
- _target_: flows.base_flows.FixedReplyAtomicFlow.instantiate_with_overrides
|
| 36 |
overrides:
|
| 37 |
+
name: "PlanFixedReplyCritic"
|
| 38 |
description: "ToDo: Add description"
|
| 39 |
+
input_keys: []
|
| 40 |
+
outputs_transformations:
|
| 41 |
+
- _target_: flows.outputs_transformations.Rename
|
| 42 |
+
old_key2new_key:
|
| 43 |
+
raw_response: "query"
|
| 44 |
fixed_reply: |2-
|
| 45 |
Consider the problem statement and the last proposed solution. Are you sure that the solution is provided in the requested format, and crucially, solves the problem?
|
| 46 |
If that is not the case, provide the corrected version of the conceptual solution in the following format:
|
CF_PlanReflect_Code.yaml
CHANGED
|
@@ -1,14 +1,19 @@
|
|
| 1 |
name: "PlanReflect_Code_Flow"
|
| 2 |
description: "ToDO: add description"
|
| 3 |
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
subflows_config:
|
| 7 |
- _target_: flows.flow_verse.instantiate_flow
|
| 8 |
-
repository_id:
|
| 9 |
-
# repository_id: "/Users/josifosk/Documents/PhD/CC_flows"
|
| 10 |
class_name: CF_PlanReflect
|
| 11 |
- _target_: flows.flow_verse.instantiate_flow
|
| 12 |
-
repository_id:
|
| 13 |
-
# repository_id: "/Users/josifosk/Documents/PhD/CC_flows"
|
| 14 |
class_name: CF_CodeWithPlan
|
|
|
|
| 1 |
name: "PlanReflect_Code_Flow"
|
| 2 |
description: "ToDO: add description"
|
| 3 |
|
| 4 |
+
input_keys:
|
| 5 |
+
- "problem_description"
|
| 6 |
+
- "input_description"
|
| 7 |
+
- "output_description"
|
| 8 |
+
- "io_examples_and_explanation"
|
| 9 |
+
|
| 10 |
+
output_keys:
|
| 11 |
+
- "code"
|
| 12 |
|
| 13 |
subflows_config:
|
| 14 |
- _target_: flows.flow_verse.instantiate_flow
|
| 15 |
+
repository_id: ${oc.env:CC_FLOWS}
|
|
|
|
| 16 |
class_name: CF_PlanReflect
|
| 17 |
- _target_: flows.flow_verse.instantiate_flow
|
| 18 |
+
repository_id: ${oc.env:CC_FLOWS}
|
|
|
|
| 19 |
class_name: CF_CodeWithPlan
|
CF_Plan_Code.yaml
CHANGED
|
@@ -3,16 +3,25 @@ description: "ToDO: add description"
|
|
| 3 |
|
| 4 |
early_exit_key: null
|
| 5 |
|
|
|
|
|
|
|
| 6 |
subflows_config:
|
| 7 |
- _target_: flows.flow_verse.instantiate_flow
|
| 8 |
-
|
| 9 |
-
repository_id: "martinjosifoski/CC_flows"
|
| 10 |
class_name: CF_Plan
|
| 11 |
overrides:
|
| 12 |
model_name: "gpt-4"
|
| 13 |
- _target_: flows.flow_verse.instantiate_flow
|
| 14 |
-
|
| 15 |
-
repository_id: "martinjosifoski/CC_flows"
|
| 16 |
class_name: CF_CodeWithPlan
|
| 17 |
overrides:
|
| 18 |
model_name: "gpt-4"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
early_exit_key: null
|
| 5 |
|
| 6 |
+
|
| 7 |
+
|
| 8 |
subflows_config:
|
| 9 |
- _target_: flows.flow_verse.instantiate_flow
|
| 10 |
+
repository_id: ${oc.env:CC_FLOWS}
|
|
|
|
| 11 |
class_name: CF_Plan
|
| 12 |
overrides:
|
| 13 |
model_name: "gpt-4"
|
| 14 |
- _target_: flows.flow_verse.instantiate_flow
|
| 15 |
+
repository_id: ${oc.env:CC_FLOWS}
|
|
|
|
| 16 |
class_name: CF_CodeWithPlan
|
| 17 |
overrides:
|
| 18 |
model_name: "gpt-4"
|
| 19 |
+
|
| 20 |
+
input_keys:
|
| 21 |
+
- "problem_description"
|
| 22 |
+
- "input_description"
|
| 23 |
+
- "output_description"
|
| 24 |
+
- "io_examples_and_explanation"
|
| 25 |
+
|
| 26 |
+
output_keys:
|
| 27 |
+
- "code"
|
__init__.py
CHANGED
|
@@ -1,12 +1,16 @@
|
|
| 1 |
from .CF_Code import CF_Code
|
| 2 |
-
# from .CF_CodeWithPlan import CF_CodeWithPlan
|
| 3 |
from .CF_CodeReflect import CF_CodeReflect
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
from .CF_Code import CF_Code
|
|
|
|
| 2 |
from .CF_CodeReflect import CF_CodeReflect
|
| 3 |
+
|
| 4 |
+
from .CF_CodeCritic import CF_CodeCritic
|
| 5 |
+
from .CF_CodeCollab import CF_CodeCollab
|
| 6 |
+
|
| 7 |
+
from .CF_Plan import CF_Plan
|
| 8 |
+
from .CF_CodeWithPlan import CF_CodeWithPlan
|
| 9 |
+
from .CF_Plan_Code import CF_Plan_Code
|
| 10 |
+
|
| 11 |
+
from .CF_PlanReflect import CF_PlanReflect
|
| 12 |
+
from .CF_PlanReflect_Code import CF_PlanReflect_Code
|
| 13 |
+
|
| 14 |
+
from .CF_PlanCritic import CF_PlanCritic
|
| 15 |
+
from .CF_PlanCollab import CF_PlanCollab
|
| 16 |
+
from .CF_PlanCollab_Code import CF_PlanCollab_Code
|