同步完整源码 - 2026-05-25
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# !/usr/bin/env python3
|
||||
# -*- coding:utf-8 -*-
|
||||
|
||||
# @Time : 2024/10/29 10:20
|
||||
# @Author : wangchongshi
|
||||
# @Email : wangchongshi.wcs@antgroup.com
|
||||
# @FileName: __init__.py
|
||||
@@ -0,0 +1,7 @@
|
||||
# !/usr/bin/env python3
|
||||
# -*- coding:utf-8 -*-
|
||||
|
||||
# @Time : 2024/10/29 10:21
|
||||
# @Author : wangchongshi
|
||||
# @Email : wangchongshi.wcs@antgroup.com
|
||||
# @FileName: __init__.py
|
||||
@@ -0,0 +1,25 @@
|
||||
# !/usr/bin/env python3
|
||||
# -*- coding:utf-8 -*-
|
||||
|
||||
# @Time : 2024/4/8 20:58
|
||||
# @Author : jerry.zzw
|
||||
# @Email : jerry.zzw@antgroup.com
|
||||
# @FileName: mcp_application.py
|
||||
from agentuniverse.agent_serve.web.mcp.mcp_server_manager import MCPServerManager
|
||||
from agentuniverse.base.agentuniverse import AgentUniverse
|
||||
|
||||
|
||||
class ServerApplication:
|
||||
"""
|
||||
Server application.
|
||||
"""
|
||||
|
||||
@classmethod
|
||||
def start(cls):
|
||||
AgentUniverse().start(core_mode=True)
|
||||
MCPServerManager().start_server()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
ServerApplication.start()
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
# !/usr/bin/env python3
|
||||
# -*- coding:utf-8 -*-
|
||||
|
||||
# @Time : 2024/4/8 20:58
|
||||
# @Author : jerry.zzw
|
||||
# @Email : jerry.zzw@antgroup.com
|
||||
# @FileName: server_application.py
|
||||
from agentuniverse.agent_serve.web.web_booster import start_web_server
|
||||
from agentuniverse.base.agentuniverse import AgentUniverse
|
||||
|
||||
|
||||
class ServerApplication:
|
||||
"""
|
||||
Server application.
|
||||
"""
|
||||
|
||||
@classmethod
|
||||
def start(cls):
|
||||
AgentUniverse().start()
|
||||
start_web_server()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
ServerApplication.start()
|
||||
@@ -0,0 +1,7 @@
|
||||
# !/usr/bin/env python3
|
||||
# -*- coding:utf-8 -*-
|
||||
|
||||
# @Time : 2024/10/29 10:21
|
||||
# @Author : wangchongshi
|
||||
# @Email : wangchongshi.wcs@antgroup.com
|
||||
# @FileName: __init__.py
|
||||
@@ -0,0 +1,26 @@
|
||||
# !/usr/bin/env python3
|
||||
# -*- coding:utf-8 -*-
|
||||
|
||||
# @Time : 2024/7/24 15:35
|
||||
# @Author : wangchongshi
|
||||
# @Email : wangchongshi.wcs@antgroup.com
|
||||
# @FileName: product_application.py
|
||||
from agentuniverse.base.agentuniverse import AgentUniverse
|
||||
from agentuniverse_product.agentuniverse_product import AgentUniverseProduct
|
||||
|
||||
|
||||
class ProductApplication:
|
||||
"""
|
||||
Product application: agentUniverse-product portal.
|
||||
|
||||
After startup, the system redirects to the aU-product homepage by default.
|
||||
"""
|
||||
|
||||
@classmethod
|
||||
def start(cls):
|
||||
AgentUniverse().start(core_mode=True)
|
||||
AgentUniverseProduct().start()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
ProductApplication.start()
|
||||
Reference in New Issue
Block a user