CoderFlowModule / CtrlExMem_CoderFlow.yaml
Tachi67's picture
Update CtrlExMem_CoderFlow.yaml
af77c2e
raw
history blame
5.97 kB
_target_: Tachi67.CoderFlowModule.CtrlExMem_CoderFlow.instantiate_from_default_config
name: "CtrlExMem_CoderFlow"
description: "MemorizedControllerExecutor flow for Coder flow"
input_interface:
- "plan"
- "logs"
- "code_library"
- "memory_files"
- "goal"
subflows_config:
Controller:
_target_: Tachi67.CoderFlowModule.Controller_CoderFlow.instantiate_from_default_config
backend:
api_infos: ???
model_name:
openai: gpt-4
azure: azure/gpt-4
Executor:
_target_: flows.base_flows.BranchingFlow.instantiate_from_default_config
subflows_config:
extend_library:
_target_: Tachi67.ExtendLibraryFlowModule.ExtendLibraryFlow.instantiate_from_default_config
memory_files: ???
subflows_config:
Planner:
_target_: Tachi67.PlanWriterFlowModule.PlanWriterFlow.instantiate_from_default_config
subflows_config:
Controller:
backend:
api_infos: ???
model_name:
openai: gpt-4
azure: azure/gpt-4
Executor:
subflows_config:
write_plan:
subflows_config:
PlanGenerator:
backend:
api_infos: ???
model_name:
openai: gpt-4
azure: azure/gpt-4
CtrlExMem:
_target_: Tachi67.ExtendLibraryFlowModule.CtrlExMem_ExtLib.instantiate_from_default_config
subflows_config:
Controller:
backend:
api_infos: ???
model_name:
openai: gpt-4
azure: azure/gpt-4
Executor:
subflows_config:
write_code:
subflows_config:
Controller:
backend:
api_infos: ???
model_name:
openai: gpt-4
azure: azure/gpt-4
Executor:
subflows_config:
write_code:
memory_files: ???
subflows_config:
CodeGenerator:
backend:
api_infos: ???
model_name:
openai: gpt-4
azure: azure/gpt-4
test:
memory_files: ???
re_plan:
subflows_config:
Controller:
backend:
api_infos: ???
model_name:
openai: gpt-4
azure: azure/gpt-4
Executor:
subflows_config:
write_plan:
subflows_config:
PlanGenerator:
backend:
api_infos: ???
model_name:
openai: gpt-4
azure: azure/gpt-4
ask_user:
_target_: Tachi67.ExtendLibraryFlowModule.ExtLibAskUserFlow.instantiate_from_default_config
re_plan:
_target_: Tachi67.ReplanningFlowModule.ReplanningFlow.instantiate_from_default_config
subflows_config:
Controller:
backend:
api_infos: ???
model_name:
openai: gpt-4
azure: azure/gpt-4
Executor:
subflows_config:
write_plan:
subflows_config:
PlanGenerator:
backend:
api_infos: ???
model_name:
openai: gpt-4
azure: azure/gpt-4
run_code:
_target_: Tachi67.RunCodeFlowModule.RunCodeFlow.instantiate_from_default_config
update_plan:
_target_: Tachi67.CoderFlowModule.UpdatePlanAtomicFlow.instantiate_from_default_config
MemoryReading:
_target_: Tachi67.MemoryReadingFlowModule.MemoryReadingAtomicFlow.instantiate_from_default_config
output_interface:
- "plan"
- "logs"
- "code_library"
topology:
- goal: "Select the next action and prepare the input for the executor."
input_interface:
_target_: flows.interfaces.KeyInterface
additional_transformations:
- _target_: flows.data_transformations.KeyMatchInput
flow: Controller
output_interface:
_target_: CtrlExMem_CoderFlow.detect_finish_or_continue
reset: false
- goal: "Execute the action specified by the Controller."
input_interface:
_target_: flows.interfaces.KeyInterface
keys_to_rename:
command: branch
command_args: branch_input_data
keys_to_select: ["branch", "branch_input_data"]
flow: Executor
output_interface:
_target_: flows.interfaces.KeyInterface
keys_to_rename:
branch_output_data: observation
keys_to_unpack: ["observation"]
reset: false
- goal: "Write memory to memory files"
input_interface:
_target_: flows.interfaces.KeyInterface
additional_transformations:
- _target_: flows.data_transformations.KeyMatchInput
flow: MemoryWriting
reset: false
- goal: "Read memory from memory files (flow_state)"
input_interface:
_target_: flows.interfaces.KeyInterface
additional_transformations:
- _target_: flows.data_transformations.KeyMatchInput
flow: MemoryReading
reset: false