File size: 950 Bytes
9741e89
 
 
4961d67
 
e54a1f1
6c473f5
 
 
 
f748a3e
e54a1f1
6c473f5
9741e89
 
28b05f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6fffc74
28b05f5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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"