agentscope.web.workstation.workflow module

Workflow

agentscope.web.workstation.workflow.load_config(config_path: str) dict[源代码]

Load a JSON configuration file.

参数:

config_path – A string path to the JSON configuration file.

返回:

A dictionary containing the loaded configuration.

agentscope.web.workstation.workflow.start_workflow(config: dict) None[源代码]

Start the application workflow based on the given configuration.

参数:

config – A dictionary containing the application configuration.

This function will initialize and launch the application.

agentscope.web.workstation.workflow.compile_workflow(config: dict, compiled_filename: str = 'main.py') None[源代码]

Generates Python code based on the given configuration.

参数:
  • config – A dictionary containing the application configuration.

  • compiled_filename – complied file name.

agentscope.web.workstation.workflow.main() None[源代码]

Parse command-line arguments and launch the application workflow.

This function sets up command-line argument parsing and checks if a configuration file path is provided. If the configuration file is found, it proceeds to load it and start the workflow.

If no configuration file is provided, a FileNotFoundError is raised.