Tachi67's picture
Upload README.md
8c77957
|
raw
history blame
4.58 kB

Table of Contents

SaveCodeAtomicFlow

SaveCodeAtomicFlow Objects

class SaveCodeAtomicFlow(AtomicFlow)

This flow appends the code to the code library file. Input Interface:

  • code (str): the code to be appended to the code library
  • memory_files (dict): the dictionary of memory files

Output Interface:

  • result (str): the result of the flow, to be returned to the controller of the caller
  • summary (str): the summary of the flow, to be appended to logs

run

def run(input_data: Dict[str, Any])

Run the flow

Arguments:

  • input_data: the input data

Returns:

the output data

ExtLibAskUserFlow

ExtLibAskUserFlow Objects

class ExtLibAskUserFlow(HumanStandardInputFlow)

This class is used to ask for user feedback whenever the controller is unsure of something, or need confirmation, etc.

Expected Input:

  • question: The question asked by the controller

Expected Behaviour:

  • The question is displayed, and the user gives feedback by inputing string.

Expected Ouput:

  • result: The input of the user.
  • summary: The summary that will be written by the caller.

ExtendLibraryFlow

ExtendLibraryFlow Objects

class ExtendLibraryFlow(AbstractBossFlow)

ExtendLibraryFlow is one branch executor of CoderFlow. At a higher level, it takes the goal from the Coder, writes functions in an interactive way, test the code and append the newly written function to the code library.

Workflow of ExtendLibrary: 0. Coder calls ExtendLibrary with a goal.

  1. MemoryReading reads logs, plan, and code library.
  2. Planner makes a plan based on the goal.
  3. Write code in an interactive fashion.
  4. Test code.
  5. Finish, writes code to the library. Step 3-5 is done via prompting the controller.

Input Interface (expected input)

  • goal (str): The goal from the caller (source flow, i.e. CoderFlow) Output Interface (expected output)
  • result (str): The result of the flow, the result will be returned to the caller (i.e. CoderFlow).
  • summary (str): The summary of the flow, the summary will be logged into the logs of the caller flow (i.e. CoderFlow).

UpdatePlanAtomicFlow

UpdatePlanAtomicFlow Objects

class UpdatePlanAtomicFlow(AtomicFlow)

Refer to: https://huggingface.co/Tachi67/CoderFlowModule/blob/main/UpdatePlanAtomicFlow.py

run_ExtendLibrary

CtrlExMem_ExtLib

CtrlExMem_ExtLib Objects

class CtrlExMem_ExtLib(CtrlExMemFlow)

This class inherits from the CtrlExMemFlow class from AbstractBossFlowModule. See: https://huggingface.co/Tachi67/AbstractBossFlowModule/blob/main/CtrlExMemFlow.py Input Interface:

  • plan
  • logs
  • memory_files
  • goal Output Interface
  • 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.

ControllerFlow_ExtLib

ControllerFlow_ExtLib Objects

class ControllerFlow_ExtLib(ChatAtomicFlow)

Refer to: https://huggingface.co/Tachi67/JarvisFlowModule/blob/main/Controller_JarvisFlow.py

__init__