name: "CodeReflect_Flow" | |
description: "ToDO: add description" | |
max_rounds: 2 # ToDo: To increase to 4 | |
input_keys: | |
- "problem_description" | |
- "input_description" | |
- "output_description" | |
- "io_examples_and_explanation" | |
output_keys: | |
- "code" | |
subflows_config: | |
CodeGenerator: | |
_target_: .CF_Code.instantiate_from_default_config | |
CodeReflectCritic: | |
_target_: .FixedReply_CodeReflect.instantiate_from_default_config | |
topology: | |
- flow: CodeGenerator | |
reset_every_round: false | |
output_transformations: | |
- _target_: flows.data_transformations.EndOfInteraction | |
end_of_interaction_string: "Final answer" | |
input_key: "api_output" | |
output_key: "end_of_interaction" | |
- flow: CodeReflectCritic | |
reset_every_round: true | |
output_transformations: | |
- _target_: flows.data_transformations.KeyRename | |
old_key2new_key: | |
code_reflect_message: "query" | |
early_exit_key: "end_of_interaction" | |