Files
gen_data_agent/app.py
2025-09-08 15:09:20 +08:00

37 lines
1.2 KiB
Python

from pyboot.application import PybootApplication
from runners.task_generator import TaskGenerator
from runners.data_generator import DataGenerator
from runners.data_replayer import DataReplayer
from runners.task_templates_divider import TaskTemplatesDivider
@PybootApplication("main")
class MainApp:
@staticmethod
def start():
TaskGenerator(config_path="configs/generate_task_config.yaml").run()
DataGenerator(config_path="configs/generate_data_config.yaml").run()
DataReplayer(config_path="configs/record_data_config.yaml").run()
@PybootApplication("divide_task")
class DivideTaskApp:
@staticmethod
def start():
TaskTemplatesDivider(config_path="configs/divide_task_config.yaml").run()
@PybootApplication("generate_task")
class GenerateTaskApp:
@staticmethod
def start():
TaskGenerator(config_path="configs/generate_task_config.yaml").run()
@PybootApplication("generate_data")
class GenerateDataApp:
@staticmethod
def start():
DataGenerator(config_path="configs/generate_data_config.yaml").run()
@PybootApplication("replay")
class ReplayApp:
@staticmethod
def start():
DataReplayer(config_path="configs/replay_config.yaml").run()