Python/产品需求文档AI生成/main.py

20 lines
393 B
Python

# -*- coding: utf-8 -*-
"""
主运行模块
"""
# 列举导入模块
import uvicorn
from utils.agent import BaseAgent
# 实例智能体
agent = BaseAgent(
instructions="使用提供的技能回答问题。", skill_name="requirements-analysis"
)
# 实例 Starlette 应用
application = agent.to_web()
if __name__ == "__main__":
uvicorn.run(application, host="127.0.0.1", port=7932)