File size: 1,195 Bytes
f2030ec
 
0b2483c
6175374
 
f2030ec
6211d74
f2030ec
 
 
6211d74
 
 
 
 
 
 
 
 
 
 
 
 
 
6175374
 
 
035821c
0b2483c
 
 
6175374
035821c
0b2483c
 
 
6175374
 
 
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
name: "ChatInteractiveFlow"
description: "Flow that enables chatting between a ChatAtomicFlow and a user providing the input."
_target_: flow_modules.aiflows.ChatInteractiveFlowModule.ChatHumanFlowModule.instantiate_from_default_config
max_rounds: null # Run until early exit is detected

input_interface:
  - "query"
  
output_interface:
  - "end_of_interaction"
  - "user_inputs"
  - "assistant_outputs"

regex_first_occurrence_extractor:
  regex: "(?<=```answer)([\\s\\S]*?)(?=```)"
  input_key: "query"
  output_key: "answer"
  strip: true
  assert_unique: true

end_of_interaction:
  end_of_interaction_string: "<END>"
  input_key: "query"
  output_key: "end_of_interaction"

subflows_config:
  Assistant:
    _target_: flow_modules.aiflows.ChatFlowModule.ChatAtomicFlow.instantiate_from_default_config
    flow_class_name: flow_modules.aiflows.ChatFlowModule.ChatAtomicFlow
    flow_endpoint: Assistant
    user_id: local
  User:
    _target_: flow_modules.aiflows.HumanStandardInputFlowModule.HumanStandardInputFlow.instantiate_from_default_config
    flow_class_name: flow_modules.aiflows.HumanStandardInputFlowModule.HumanStandardInputFlow
    flow_endpoint: User
    user_id: local