Skip to main content

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

核心工作流

  1. 工具表达式开发 (Tool Expression):

    • 专注于 uni_tool/core/execution.py 和相关逻辑。
    • 使用 uv run pytest tests/unit/test_expression.py 验证更改。
  2. 中间件开发 (Middleware):

    • uni_tool/middlewares/ 中实现新的中间件。
    • 确保遵循纵深防御上下文隔离原则。
    • 使用 uv run pytest tests/unit/test_middleware.py 验证更改。
  3. 规范驱动开发:

    • 使用 /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.3.0.tar.gz (175.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uni_tool-0.3.0-py3-none-any.whl (40.9 kB view details)

Uploaded Python 3

File details

Details for the file uni_tool-0.3.0.tar.gz.

File metadata

  • Download URL: uni_tool-0.3.0.tar.gz
  • Upload date:
  • Size: 175.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for uni_tool-0.3.0.tar.gz
Algorithm Hash digest
SHA256 23d5ae36755fee5324f34facb40d503be5d1a7a8f04dae089ffc682809f4abff
MD5 7ec6f275f0ee9e2c519bf1177b06b237
BLAKE2b-256 15f0952ace390e32bd78c23e2034c31ee1b140f31f6c24756419d36d6270d451

See more details on using hashes here.

File details

Details for the file uni_tool-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: uni_tool-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 40.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for uni_tool-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 43ce1250a6bf362a48f7b4c77b441c36101c38fccd219e980037602f47018849
MD5 1ef4e30a15c3a0433637e0c2ee58a271
BLAKE2b-256 36bf4cdd7758fe7c1564e2dbc4b9cafa53fa7c2d7742092f7dba6ee2f6057ff2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page