File size: 1,676 Bytes
d30a78e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
40
41
42
43
44
45
46
47
48
49
50
51
name: "AbstractBossFlow"
description: "Abstract class of a boss, e.g. coder, ExtendLibrary, etc."

_target_: flow_modules.aiflows.AbstractBossFlowModule.AbstractBossFlow.instantiate_from_default_config

memory_files: ???

input_interface:
  - "goal"

output_interface:
  - "result"
  - "summary" # to be written into the logs of the upper level boss

subflows_config:
  MemoryReading:
    _target_: flow_modules.aiflows.MemoryReadingFlowModule.MemoryReadingAtomicFlow.instantiate_from_default_config

  Planner:
    _target_: flow_modules.aiflows.PlanWriterFlowModule.PlanWriterFlow.instantiate_from_default_config

  # the flow with a controller, few executors in a branch, memory reading and memory writing
  CtrlExMem:
    _target_: flow_modules.aiflows.AbstractBossFlowModule.CtrlExMemFlow.instantiate_from_default_config

early_exit_key: "EARLY_EXIT"

topology:
  - goal: "Read in necessary memory"
    input_interface:
      _target_: aiflows.interfaces.KeyInterface
      additional_transformations:
        - _target_: aiflows.data_transformations.KeyMatchInput
    flow: MemoryReading
    reset: false

  - goal: "Make plans in an interactive fashion, write the plan into the plan file"
    input_interface:
      _target_: aiflows.interfaces.KeyInterface
      additional_transformations:
        - _target_: aiflows.data_transformations.KeyMatchInput
    flow: Planner
    reset: false

  - goal: "Execute the plan and return answer & a summary of what was done"
    input_interface:
      _target_: aiflows.interfaces.KeyInterface
      additional_transformations:
        - _target_: aiflows.data_transformations.KeyMatchInput
    flow: CtrlExMem
    reset: false