AI代理服务工具包 是 AI Skill Hub 本期精选Agent工作流之一。已获得 4.4k 颗 GitHub Star,综合评分 8.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
AI代理服务工具包 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
AI代理服务工具包 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:pip 安装(推荐)
pip install agent-service-toolkit
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install agent-service-toolkit
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/JoshuaC215/agent-service-toolkit
cd agent-service-toolkit
pip install -e .
# 验证安装
python -c "import agent_service_toolkit; print('安装成功')"
# 命令行使用
agent-service-toolkit --help
# 基本用法
agent-service-toolkit input_file -o output_file
# Python 代码中调用
import agent_service_toolkit
# 示例
result = agent_service_toolkit.process("input")
print(result)
# agent-service-toolkit 配置文件示例(config.yml) app: name: "agent-service-toolkit" debug: false log_level: "INFO" # 运行时指定配置文件 agent-service-toolkit --config config.yml # 或通过环境变量配置 export AGENT_SERVICE_TOOLKIT_API_KEY="your-key" export AGENT_SERVICE_TOOLKIT_OUTPUT_DIR="./output"
A full toolkit for running an AI agent service built with LangGraph, FastAPI and Streamlit.
It includes a LangGraph agent, a FastAPI service to serve it, a client to interact with the service, and a Streamlit app that uses the client to provide a chat interface. Data structures and settings are built with Pydantic.
This project offers a template for you to easily build and run your own agents using the LangGraph framework. It demonstrates a complete setup from agent definition to user interface, making it easier to get started with LangGraph-based projects by providing a full, robust toolkit.
interrupt(), flow control with Command, long-term memory with Store, and langgraph-supervisor./infouv sync --frozen source .venv/bin/activate python src/run_service.py
curl -LsSf https://astral.sh/uv/0.7.19/install.sh | sh
git clone https://github.com/JoshuaC215/agent-service-toolkit.git
cd agent-service-toolkit
2. Set up environment variables: Create a .env file in the root directory. At least one LLM API key or configuration is required. See the .env.example file for a full list of available environment variables, including a variety of model provider API keys, header-based authentication, LangSmith tracing, testing and development modes, and OpenWeatherMap API key.
To customize the agent for your own use case:
src/agents directory. You can copy research_assistant.py or chatbot.py and modify it to change the agent's behavior and tools.agents dictionary in src/agents/agents.py. Your agent can be called by /<your_agent_name>/invoke or /<your_agent_name>/stream.src/streamlit_app.py to match your agent's capabilities.This project includes a Docker setup for easy development and deployment. The compose.yaml file defines three services: postgres, agent_service and streamlit_app. The Dockerfile for each service is in their respective directories.
For local development, we recommend using docker compose watch. This feature allows for a smoother development experience by automatically updating your containers when changes are detected in your source code.
2. Create a .env file from the .env.example. At minimum, you need to provide an LLM API key (e.g., OPENAI_API_KEY).
cp .env.example .env
# Edit .env to add your API keys
docker compose watch
This will automatically: - Start a PostgreSQL database service that the agent service connects to - Start the agent service with FastAPI - Start the Streamlit app for the user interface
4. The services will now automatically update when you make changes to your code: - Changes in the relevant python files and directories will trigger updates for the relevant services. - NOTE: If you make changes to the pyproject.toml or uv.lock files, you will need to rebuild the services by running docker compose up --build.
http://localhost:8501 in your web browser.http://0.0.0.0:8080. You can also use the OpenAPI docs at http://0.0.0.0:8080/redoc.docker compose down to stop the services.This setup allows you to develop and test your changes in real-time without manually restarting the services.
The repo includes a generic src/client/client.AgentClient that can be used to interact with the agent service. This client is designed to be flexible and can be used to build other apps on top of the agent. It supports both synchronous and asynchronous invocations, and streaming and non-streaming requests.
See the src/run_client.py file for full examples of how to use the AgentClient. A quick example:
```python from client import AgentClient client = AgentClient()
response = client.invoke("Tell me a brief joke?") response.pretty_print()
You can also run the agent service and the Streamlit app locally without Docker, just using a Python virtual environment.
uv sync --frozen
source .venv/bin/activate
python src/run_service.py
streamlit run src/streamlit_app.py
http://localhost:8501).Run directly in python
```sh
echo 'OPENAI_API_KEY=your_openai_api_key' >> .env
高质量的AI工作流工具包,易于使用和扩展
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,AI代理服务工具包 在Agent工作流赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | agent-service-toolkit |
| Topics | AILangGraphFastAPIStreamlitPython |
| GitHub | https://github.com/JoshuaC215/agent-service-toolkit |
| License | MIT |
| 语言 | Python |
收录时间:2026-07-01 · 更新时间:2026-07-01 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端