# At least one LLM API key is required
echo 'OPENAI_API_KEY=your_openai_api_key' >> .env
# uv is the recommended way to install agent-service-toolkit, but "pip install ." also works# For uv installation options, see: https://docs.astral.sh/uv/getting-started/installation/curl -LsSf https://astral.sh/uv/0.13.5/install.sh | sh
# Install dependencies. "uv sync" creates .venv automaticallyuv sync --frozen
source .venv/bin/activate
python src/run_service.py
# In another shell
source .venv/bin/activate
streamlit run src/streamlit_app.py
dify · 亮点与快速安装
流程执行:可视化工作流可把 Agent 作为步骤运行,Agent 也可路由工作流。
模型接入:支持 GPT、Mistral、Llama 3 及 OpenAI API 兼容端点,可接托管或自建模型服务。
按 RepoForAI 实时快照,agent-service-toolkit 总 Star 4,597(7日 +11),dify 总 Star 162,395(7日 +370),近期增速由 dify 领先。
团队技术选型时该如何二选一?
适合选用 agent-service-toolkit(Python):团队要自托管 LangGraph 助手,先用现成的 API 和聊天界面验证图执行、流式输出及历史会话,再决定是否开发独立前端;适合选用 dify(Python):产品与平台团队需要共用工作台,搭建基于文档的助手和可调用工具的流程,再以自托管方式部署并通过应用 API 接入业务系统。