add service deployer

This commit is contained in:
yzlin 2024-04-12 10:27:56 +08:00
parent 19cd30c394
commit 9139227a8a

View file

@ -0,0 +1,11 @@
from metagpt.logs import ToolLogItem, log_tool_output
from metagpt.tools.tool_registry import register_tool
# An un-implemented tool reserved for deploying a local service to public
@register_tool()
class Deployer:
"""Deploy a local service to public. Used only for final deployment, you should NOT use it for development and testing."""
def deploy_to_public(self, local_url: str):
log_tool_output(ToolLogItem(name="local_url", value=local_url), tool_name="Deployer")