19 lines
502 B
Python
19 lines
502 B
Python
"""子智能体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,
|
||
)
|