Views
No views yet
class AbstractBossFlow(SequentialFlow, ABC)name (str): Name of the flow.description (str): Description of the flow.memory_files (dict): A dictionary of memory files. The keys are the names of the memory files and the values
are the path to the memory files. Typical memory files include plan, logs, code library.subflows_config:
early_exit_key (str): The key in the flow state that indicates the early exit condition.topology (list) : The topology of the flow.goal (str): The goal from the caller (source flow)result (str): The result of the flow, the result will be returned to the caller.summary (str): The summary of the flow, the summary will be logged into the logs of the caller flow.memory_files (dict): A dictionary of memory files. The keys are the names of the memory files and the values are the path to the memory files.1@classmethod
2def instantiate_from_config(cls, config)config (dict): The configuration dictionary.def run(input_data: Dict[str, Any]) -> Dict[str, Any]input_data (dict): The input data, the input_data is supposed to contain 'goal'class CtrlExMemFlow(CircularFlow, ABC)result and summary, which respectively will be passed to the controller and the
memory writer (into logs of the upper layer of flow). Depending on the result, the controller will decide what
action to take next.name (str): Name of the flow.description (str): Description of the flow.max_round (int): The maximum number of rounds the flow will run. Default: 30.subflows_config (dict): The configuration of the subflows.
Controller (dict): The configuration of the controller. It is important that the target of the controller (instance customizable by the user) and the api information should be specified.Executor (dict): The executor of the flow, it is supposed to be a branching flow. To instantiate the executor, the user needs to specify the subflows of the executor (i.e. the actual tools that can be used by the agent, e.g. a flow for interpreting code)MemoryWriting (dict): The configuration of the memory writer. There is an existing memory writing flow implemented.topology (List): The topology of the subflows, notice that the output interface of the Controller must be implemented and specified.plan (str): The plan generated by the planner, the CtrlExMem flow should follow the plan.memory_files (dict): mem_name - memfile_path pairs, the memory files that the memory reader will read from.goal (str): The goal of the flowlogs (str): Execution history of the flow, contains all actions taken by each subflow of the flow.result (str): The result of the flow, will be returned to the controller of the caller flow.summary (str): The summary of the flow, will be written to the logs of the caller flow.1@abstractmethod
2@CircularFlow.output_msg_payload_processor
3def detect_finish_or_continue(output_payload: Dict[str, Any],
4 src_flow) -> Dict[str, Any]output_payload (Dict[str, Any]): The output payload of the Controller.src_flow (Flow): The source flow of the Controller.