- 引入AgentTeamOrchestrator支持多agent协同任务执行 - 增加第三方swarms库依赖并配置git协议替换以改善包管理 - 扩展DelegationManager支持团队任务调度和进度跟踪 - 实现中文bigram分词算法提升中文任务检索准确性 - 调整A2AClient和DelegationManager超时时间从30秒增至600秒 - 优化AgentRunResult状态判断逻辑增加有意义摘要检测 - 修改Dockerfile配置npm仓库镜像地址和git协议映射 - 更新CLI命令行接口支持网关端口配置传递 - 调整提供者超时配置机制增强请求稳定性 - 移除过时的support_group字段简化agent描述符结构 - 增强错误处理和进度事件报告机制改进用户体验
123 lines
2.8 KiB
TOML
123 lines
2.8 KiB
TOML
[project]
|
|
name = "nanobot-ai"
|
|
version = "0.1.4.post1"
|
|
description = "A lightweight personal AI assistant framework"
|
|
requires-python = ">=3.11"
|
|
license = {text = "MIT"}
|
|
authors = [
|
|
{name = "nanobot contributors"}
|
|
]
|
|
keywords = ["ai", "agent", "chatbot"]
|
|
classifiers = [
|
|
"Development Status :: 3 - Alpha",
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
]
|
|
|
|
dependencies = [
|
|
"typer>=0.20.0,<1.0.0",
|
|
"litellm>=1.81.5,<2.0.0",
|
|
"pydantic>=2.12.0,<3.0.0",
|
|
"pydantic-settings>=2.12.0,<3.0.0",
|
|
"websockets>=16.0,<17.0",
|
|
"websocket-client>=1.9.0,<2.0.0",
|
|
"httpx>=0.28.0,<1.0.0",
|
|
"oauth-cli-kit>=0.1.3,<1.0.0",
|
|
"loguru>=0.7.3,<1.0.0",
|
|
"readability-lxml>=0.8.4,<1.0.0",
|
|
"rich>=14.0.0,<15.0.0",
|
|
"croniter>=6.0.0,<7.0.0",
|
|
"dingtalk-stream>=0.24.0,<1.0.0",
|
|
"python-telegram-bot[socks]>=22.0,<23.0",
|
|
"lark-oapi>=1.5.0,<2.0.0",
|
|
"socksio>=1.0.0,<2.0.0",
|
|
"python-socketio>=5.16.0,<6.0.0",
|
|
"msgpack>=1.1.0,<2.0.0",
|
|
"slack-sdk>=3.39.0,<4.0.0",
|
|
"slackify-markdown>=0.2.0,<1.0.0",
|
|
"qq-botpy>=1.2.0,<2.0.0",
|
|
"python-socks[asyncio]>=2.8.0,<3.0.0",
|
|
"prompt-toolkit>=3.0.50,<4.0.0",
|
|
"mcp>=1.26.0,<2.0.0",
|
|
"json-repair>=0.57.0,<1.0.0",
|
|
"fastapi>=0.115.0,<1.0.0",
|
|
"uvicorn[standard]>=0.34.0,<1.0.0",
|
|
"psutil>=7.2.2",
|
|
"python-dotenv>=1.2.1",
|
|
"pyyaml>=6.0.3",
|
|
"toml>=0.10.2",
|
|
"pypdf==5.1.0",
|
|
"ratelimit>=2.2.1",
|
|
"tenacity>=9.1.4",
|
|
"networkx>=3.6.1",
|
|
"aiofiles>=24.1.0",
|
|
"requests>=2.32.5",
|
|
"aiohttp>=3.13.3",
|
|
"numpy>=2.4.4",
|
|
"schedule>=1.2.2",
|
|
"setuptools>=82.0.1",
|
|
"chardet<6",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
matrix = [
|
|
"matrix-nio[e2e]>=0.25.2",
|
|
"mistune>=3.0.0,<4.0.0",
|
|
"nh3>=0.2.17,<1.0.0",
|
|
]
|
|
dev = [
|
|
"pytest>=9.0.0,<10.0.0",
|
|
"pytest-asyncio>=1.3.0,<2.0.0",
|
|
"ruff>=0.1.0",
|
|
"matrix-nio[e2e]>=0.25.2",
|
|
"mistune>=3.0.0,<4.0.0",
|
|
"nh3>=0.2.17,<1.0.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
nanobot = "nanobot.cli.commands:app"
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["nanobot"]
|
|
|
|
[tool.hatch.build.targets.wheel.sources]
|
|
"nanobot" = "nanobot"
|
|
|
|
# Include non-Python files in skills and templates
|
|
[tool.hatch.build]
|
|
include = [
|
|
"nanobot/**/*.py",
|
|
"nanobot/templates/**/*.md",
|
|
"nanobot/skills/**/*.md",
|
|
"nanobot/skills/**/*.sh",
|
|
]
|
|
|
|
[tool.hatch.build.targets.sdist]
|
|
include = [
|
|
"nanobot/",
|
|
"bridge/",
|
|
"README.md",
|
|
"LICENSE",
|
|
]
|
|
|
|
[tool.hatch.build.targets.wheel.force-include]
|
|
"bridge" = "nanobot/bridge"
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py311"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "N", "W"]
|
|
ignore = ["E501"]
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
testpaths = ["tests"]
|