File size: 1,091 Bytes
23272f4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
39
name: "TestCodeFlow"
description: "Test the code generated by InteractiveCodeGenFlow"

_target_: flow_modules.aiflows.TestCodeFlowModule.TestCodeFlow.instantiate_from_default_config

memory_files: ???

input_interface:
  - "code"

output_interface:
  - "feedback"

subflows_config:
  TestCodeFileEdit:
    _target_: flow_modules.aiflows.TestCodeFlowModule.TestCodeFileEditAtomicFlow.instantiate_from_default_config

  CodeTesting:
    _target_: flow_modules.aiflows.TestCodeFlowModule.CodeTestingAtomicFlow.instantiate_from_default_config

early_exit_key: "EARLY_EXIT"

topology:
  - goal: "Write the code & instructions for testing to a temp file"
    input_interface:
      _target_: aiflows.interfaces.KeyInterface
      additional_transformations:
        - _target_: aiflows.data_transformations.KeyMatchInput
    flow: TestCodeFileEdit
    reset: false

  - goal: "Test the code"
    input_interface:
      _target_: aiflows.interfaces.KeyInterface
      additional_transformations:
        - _target_: aiflows.data_transformations.KeyMatchInput
    flow: CodeTesting
    reset: false