File size: 1,772 Bytes
cbb225c
 
 
5eb5cb9
cbb225c
 
 
 
 
 
 
 
 
 
5fbaf2a
 
34a9244
 
 
5eb5cb9
1beb8a2
 
 
 
cbb225c
 
 
 
 
40a0d94
34a9244
 
 
 
 
 
 
cbb225c
5fbaf2a
 
40a0d94
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
name: "CtrlEx"
description: "ControllerExecutor (i.e., MRKL, ReAct) interaction implementation with Flows that approaches the problem solving in two phases: one Flow chooses the next step and another Flow executes it. This is repeated until the controller Flow concludes on an answer."
max_rounds: 30
_target_: flow_modules.aiflows.ControllerExecutorFlowModule.ControllerExecutorFlow.instantiate_from_default_config
### Information used by the default interface specification implementation
input_interface:
  - "goal"
output_interface:
  - "answer"
  - "status"

### Subflows specification
subflows_config:
  Controller:
    name: "ControllerAtomicFlow"
    description: "A flow that calls other flows to solve a problem."
    flow_class_name: flow_modules.aiflows.ControllerExecutorFlowModule.ControllerAtomicFlow
    flow_endpoint: ControllerAtomicFlow
    user_id: local
    _target_: flow_modules.aiflows.ControllerExecutorFlowModule.ControllerAtomicFlow.instantiate_from_default_config
    commands:
      finish:
        description: "Signal that the objective has been satisfied, and returns the answer to the user."
        input_args: ["answer"]
# E.g.,
#    commands:
#      wiki_search:
#        description: "Performs a search on Wikipedia."
#        input_args: ["search_term"]

  wiki_search:
    _target_: flow_modules.aiflows.ControllerExecutorFlowModule.WikiSearchAtomicFlow.instantiate_from_default_config
    flow_class_name: flow_modules.aiflows.ControllerExecutorFlowModule.WikiSearchAtomicFlow
    flow_endpoint: WikiSearchAtomicFlow
    user_id: local
    name: "WikiSearchAtomicFlow"
    description: "A flow that searches Wikipedia for information."
# E.g.,
  # wiki_search:
  #   _target_: .WikiSearchAtomicFlow.instantiate_from_default_config