UniTools SDK - A unified tool registration and execution framework for LLM agents
Project description
UniTools SDK
快速开始
本项目使用 uv 进行极速包管理。
1. 安装 uv
# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
2. 初始化环境
# 创建虚拟环境并安装依赖
uv sync
# 激活虚拟环境
source .venv/bin/activate # macOS/Linux
# .venv\Scripts\activate # Windows
3. 常用命令
# 添加依赖
uv add <package_name>
# 运行脚本
uv run main.py
# 运行测试
uv run pytest
开发指南
详细开发准则请参考 CLAUDE.md 和 .specify/memory/constitution.md。
核心工作流
-
工具表达式开发 (Tool Expression):
- 专注于
uni_tool/core/execution.py和相关逻辑。 - 使用
uv run pytest tests/unit/test_expression.py验证更改。
- 专注于
-
中间件开发 (Middleware):
- 在
uni_tool/middlewares/中实现新的中间件。 - 确保遵循纵深防御和上下文隔离原则。
- 使用
uv run pytest tests/unit/test_middleware.py验证更改。
- 在
-
规范驱动开发:
- 使用
/speckit系列命令进行功能开发。
- 使用
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
uni_tool-0.2.0.tar.gz
(172.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
uni_tool-0.2.0-py3-none-any.whl
(36.9 kB
view details)
File details
Details for the file uni_tool-0.2.0.tar.gz.
File metadata
- Download URL: uni_tool-0.2.0.tar.gz
- Upload date:
- Size: 172.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bee8404c2dab069feda9ddacabb57a7bcd45f860fc20c023eb4b523c6ed7da7d
|
|
| MD5 |
d7c8f6eb7f909cd5abb2e31be81d610b
|
|
| BLAKE2b-256 |
f5569eb5f98ce939aac646555460547e36ab213b2d2c89fb5c892a2304c30105
|
File details
Details for the file uni_tool-0.2.0-py3-none-any.whl.
File metadata
- Download URL: uni_tool-0.2.0-py3-none-any.whl
- Upload date:
- Size: 36.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d567fa89816713e80e42b941509c5f5b9d82ad91b16cbabd8b2759aa8c45cf92
|
|
| MD5 |
faa485bc1c33aac6bbc85057bbe3e5f5
|
|
| BLAKE2b-256 |
eac9a9a7e15ccbc1de8a70fbb5945cbe6f1fd747983c8122e35d12472fd8f5b3
|