|
|
|
|
|
|
|
|
_target_: Tachi67.AbstractBossFlowModule.CtrlExMemFlow.instantiate_from_default_config |
|
|
|
|
|
name: "AbstractCtrlExMemFlow" |
|
|
description: "Abstract class of controller-executor flow with mem reading and mem writing" |
|
|
max_rounds: 30 |
|
|
|
|
|
input_interface: |
|
|
- "plan" |
|
|
- "memory_files" |
|
|
- "goal" |
|
|
- "logs" |
|
|
|
|
|
output_interface: |
|
|
- "summary" |
|
|
- "result" |
|
|
|
|
|
subflows_config: |
|
|
Controller: |
|
|
_target_: ??? |
|
|
backend: |
|
|
api_infos: ??? |
|
|
model_name: |
|
|
openai: gpt-4 |
|
|
azure: azure/gpt-4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Executor: |
|
|
_target_: aiflows.base_flows.BranchingFlow.instantiate_from_default_config |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MemoryWriting: |
|
|
_target_: Tachi67.MemoryWritingFlowModule.MemoryWritingAtomicFlow.instantiate_from_default_config |
|
|
|
|
|
|
|
|
MemoryReading: |
|
|
_target_: Tachi67.MemoryReadingFlowModule.MemoryReadingAtomicFlow.instantiate_from_default_config |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
topology: |
|
|
- goal: "Select the next action and prepare the input for the executor." |
|
|
input_interface: |
|
|
_target_: aiflows.interfaces.KeyInterface |
|
|
additional_transformations: |
|
|
- _target_: aiflows.data_transformations.KeyMatchInput |
|
|
flow: Controller |
|
|
output_interface: ??? |
|
|
|
|
|
|
|
|
reset: false |
|
|
|
|
|
- goal: "Execute the action specified by the Controller." |
|
|
input_interface: |
|
|
_target_: aiflows.interfaces.KeyInterface |
|
|
keys_to_rename: |
|
|
command: branch |
|
|
command_args: branch_input_data |
|
|
keys_to_select: ["branch", "branch_input_data"] |
|
|
flow: Executor |
|
|
output_interface: |
|
|
_target_: aiflows.interfaces.KeyInterface |
|
|
|
|
|
keys_to_rename: |
|
|
branch_output_data.summary: summary |
|
|
branch_output_data.result: result |
|
|
keys_to_delete: [ "branch_output_data" ] |
|
|
reset: false |
|
|
|
|
|
- goal: "Write memory to memory files" |
|
|
input_interface: |
|
|
_target_: aiflows.interfaces.KeyInterface |
|
|
additional_transformations: |
|
|
- _target_: aiflows.data_transformations.KeyMatchInput |
|
|
flow: MemoryWriting |
|
|
reset: false |
|
|
|
|
|
- goal: "Read memory from memory files (flow_state)" |
|
|
input_interface: |
|
|
_target_: aiflows.interfaces.KeyInterface |
|
|
additional_transformations: |
|
|
- _target_: aiflows.data_transformations.KeyMatchInput |
|
|
flow: MemoryReading |
|
|
reset: false |