agentscope.web.workstation.workflow module
Workflow
- agentscope.web.workstation.workflow.load_config(config_path: str) dict [source]
Load a JSON configuration file.
- Parameters:
config_path – A string path to the JSON configuration file.
- Returns:
A dictionary containing the loaded configuration.
- agentscope.web.workstation.workflow.start_workflow(config: dict) None [source]
Start the application workflow based on the given configuration.
- Parameters:
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 [source]
Generates Python code based on the given configuration.
- Parameters:
config – A dictionary containing the application configuration.
compiled_filename – complied file name.
- agentscope.web.workstation.workflow.main() None [source]
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.