mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-29 02:46:24 +02:00
Merge branch 'di_mgx' into 'mgx_ops'
add deployment See merge request pub/MetaGPT!43
This commit is contained in:
commit
3554c0276f
2 changed files with 13 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ from metagpt.tools.libs import (
|
|||
terminal,
|
||||
file_manager,
|
||||
browser,
|
||||
deployer,
|
||||
)
|
||||
from metagpt.tools.libs.software_development import (
|
||||
write_prd,
|
||||
|
|
@ -42,4 +43,5 @@ _ = (
|
|||
terminal,
|
||||
file_manager,
|
||||
browser,
|
||||
deployer,
|
||||
) # Avoid pre-commit error
|
||||
|
|
|
|||
11
metagpt/tools/libs/deployer.py
Normal file
11
metagpt/tools/libs/deployer.py
Normal 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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue