agent-Specialization/sub_agent/server.py

19 lines
502 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""子智能体Web服务入口监听8092端口"""
from pathlib import Path
from web_server import run_server, parse_arguments, DEFAULT_PORT
if __name__ == "__main__":
args = parse_arguments()
port = args.port or DEFAULT_PORT
# 子智能体服务默认使用8092端口
if port == DEFAULT_PORT:
port = 8092
run_server(
path=args.path or str(Path(".").resolve()),
thinking_mode=args.thinking_mode,
port=port,
debug=args.debug,
)