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