AutoGPTFlowModule / AutoGPTFlow.yaml
nbaldwin's picture
Getting ready for merge
cc97bc1
name: "AutoGPTFlow"
description: "An example implementation of AutoGPT with Flows."
max_rounds: 30
early_exit_key: "EARLY_EXIT"
### Information used by the default get_interface_description implementation
input_interface:
- "goal"
output_interface:
- "answer"
- "status"
### Subflows specification
subflows_config:
Controller:
flow_class_name: flow_modules.aiflows.ControllerExecutorFlowModule.ControllerAtomicFlow
flow_endpoint: ControllerAtomicFlow
user_id: local
_target_: flow_modules.aiflows.ControllerExecutorFlowModule.ControllerAtomicFlow.instantiate_from_default_config
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"]
# ddg_search:
# description: "Query the search engine DuckDuckGo."
# input_args: ["query"]
human_message_prompt_template:
template: |2
Potentially relevant information retrieved from your memory:
{{memory}}
=================
Here is the response to your last action:
{{observation}}
Here is the feedback from the user:
{{human_feedback}}
input_variables:
- "observation"
- "human_feedback"
- "memory"
input_interface_initialized:
- "observation"
- "human_feedback"
- "memory"
wiki_search:
name: "proxy WikiSearchAtomicFlow"
flow_class_name: flow_modules.aiflows.ControllerExecutorFlowModule.WikiSearchAtomicFlow
description: "A flow that searches Wikipedia for information."
flow_endpoint: WikiSearchAtomicFlow
user_id: local
# wiki_search:
# _target_: .WikiSearchAtomicFlow.instantiate_from_default_config
# ddg_search:
# _target_: flows.application_flows.LCToolFlowModule.LCToolFlow.instantiate_from_default_config
# backend:
# _target_: langchain.tools.DuckDuckGoSearchRun
HumanFeedback:
name: HumanFeedbackFlow
description: "A flow that requests feedback from a human."
flow_class_name: flow_modules.aiflows.HumanStandardInputFlowModule.HumanStandardInputFlow
user_id: local
flow_endpoint: HumanStandardInputFlow
_target_: flow_modules.aiflows.HumanStandardInputFlowModule.HumanStandardInputFlow.instantiate_from_default_config
request_multi_line_input_flag: False
query_message_prompt_template:
template: |2-
Please provide feedback on the last step. To quit type: "q".
Relevant information:
== Goal ==
{{goal}}
== Last Command ==
{{command}}
== Args
{{command_args}}
== Result
{{observation}}
input_variables:
- "goal"
- "command"
- "command_args"
- "observation"
input_interface_initialized:
- "goal"
- "command"
- "command_args"
- "observation"
Memory:
n_results: 2
flow_class_name: flow_modules.aiflows.VectorStoreFlowModule.ChromaDBFlow
flow_endpoint: MemoryFlow
user_id: local