pyproject.toml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. [build-system]
  2. requires = ["setuptools>=61.0", "wheel"]
  3. build-backend = "setuptools.build_meta"
  4. [project]
  5. name = "hello-agents-optimized"
  6. version = "0.2.9"
  7. description = "HelloAgents Optimized - 轻量级、可扩展的多智能体框架(增强版)"
  8. readme = "README.md"
  9. license = {text = "CC-BY-NC-SA-4.0"}
  10. authors = [
  11. {name = "HelloAgents Team", email = "jjyaoao@126.com"}
  12. ]
  13. requires-python = ">=3.10"
  14. dependencies = [
  15. # 核心依赖
  16. "openai>=1.0.0,<2.0.0",
  17. "requests>=2.25.0,<3.0.0",
  18. "python-dotenv>=0.19.0,<2.0.0",
  19. "pydantic>=2.0.0,<3.0.0",
  20. # 基础工具库
  21. "beautifulsoup4>=4.9.0,<5.0.0",
  22. "numpy>=2.0.0,<3.0.0",
  23. "networkx>=2.6.0,<4.0.0",
  24. "tiktoken>=0.5.0",
  25. ]
  26. [project.optional-dependencies]
  27. # 搜索功能
  28. search = [
  29. "tavily-python>=0.7.12",
  30. "google-search-results>=2.4.2",
  31. ]
  32. # 记忆系统
  33. memory = [
  34. "qdrant-client>=1.9.0",
  35. "neo4j>=5.0.0",
  36. "spacy>=3.4.0",
  37. "scikit-learn>=1.0.0",
  38. ]
  39. # RAG 系统
  40. rag = [
  41. "scikit-learn>=1.0.0",
  42. "transformers>=4.20.0",
  43. "torch>=1.12.0",
  44. "sentence-transformers>=2.2.0",
  45. "markitdown>=0.0.1",
  46. "pypdf>=3.9.0",
  47. "pdfminer.six>=20221105",
  48. ]
  49. # 协议支持
  50. protocols = [
  51. "fastmcp>=2.0.0,<3.0.0",
  52. "a2a-sdk>=0.1.0",
  53. ]
  54. # 评估系统
  55. evaluation = [
  56. "datasets>=2.14.0",
  57. "huggingface_hub>=0.20.0,<1.0.0",
  58. "evaluate>=0.4.0,<1.0.0",
  59. "pandas>=2.0.0,<3.0.0",
  60. "matplotlib>=3.7.0,<4.0.0",
  61. "seaborn>=0.12.0,<1.0.0",
  62. "tqdm>=4.65.0,<5.0.0",
  63. "gradio>=4.0.0,<5.0.0",
  64. ]
  65. # 强化学习
  66. rl = [
  67. "trl>=0.24.0",
  68. "transformers>=4.20.0",
  69. "torch>=2.0.0",
  70. "datasets>=2.14.0",
  71. "accelerate>=0.20.0",
  72. "peft>=0.5.0",
  73. "bitsandbytes>=0.41.0",
  74. "wandb>=0.15.0",
  75. "tensorboard>=2.13.0",
  76. ]
  77. # 记忆 + RAG 组合
  78. memory-rag = [
  79. "hello-agents-optimized[memory,rag]",
  80. ]
  81. # 全部功能
  82. all = [
  83. "hello-agents-optimized[search,memory-rag,protocols,evaluation,rl]",
  84. ]
  85. [project.urls]
  86. Homepage = "https://github.com/jjyaoao/HelloAgents"
  87. Documentation = "https://github.com/jjyaoao/HelloAgents"
  88. Repository = "https://github.com/jjyaoao/HelloAgents"
  89. [tool.setuptools.packages.find]
  90. where = ["hello_agents"]
  91. [tool.pytest.ini_options]
  92. testpaths = ["tests"]
  93. python_files = ["test_*.py"]
  94. python_classes = ["Test*"]
  95. python_functions = ["test_*"]
  96. addopts = "-v --tb=short"
  97. [tool.black]
  98. line-length = 88
  99. target-version = ['py310']
  100. [tool.isort]
  101. profile = "black"
  102. line_length = 88