mirrored 5 minutes ago
0
HiroidAdd multiple new modules and tools to enhance the functionality and extensibility of the Maestro project (#333) * Added a **pyproject.toml** file to define project metadata and dependencies. * Added **run\_maestro.py** and **osworld\_run\_maestro.py** to provide the main execution logic. * Introduced multiple new modules, including **Evaluator**, **Controller**, **Manager**, and **Sub-Worker**, supporting task planning, state management, and data analysis. * Added a **tools module** containing utility functions and tool configurations to improve code reusability. * Updated the **README** and documentation with usage examples and module descriptions. These changes lay the foundation for expanding the Maestro project’s functionality and improving the user experience. Co-authored-by: Hiroid <guoliangxuan@deepmatrix.com>3a4b673
from .registry import (
	prompt_registry,
	get_prompt,
	register_prompt,
	list_prompts,
	list_prompts_by_prefix,
	refresh_prompts,
	module,
)

__all__ = [
	"prompt_registry",
	"get_prompt",
	"register_prompt",
	"list_prompts",
	"list_prompts_by_prefix",
	"refresh_prompts",
	"module",
] 

"""
from gui_agents.prompts import module
text = module.evaluator.final_check_role
text2 = module.manager.planner_role
text3 = module.system_architecture

from gui_agents.prompts import module, refresh_prompts
print(len(module.evaluator.final_check_role))  # 0 now

# After you fill prompts/module/evaluator/final_check_role.txt ...
refresh_prompts()
print(len(module.evaluator.final_check_role))  # now > 0

"""