-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
executable file
·201 lines (172 loc) · 4.37 KB
/
pyproject.toml
File metadata and controls
executable file
·201 lines (172 loc) · 4.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "python-agent"
version = "0.3.0"
description = "Enterprise AI Agent Framework for Python"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "MIT"}
authors = [
{name = "Agent Framework Team"}
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
# Core web framework
"fastapi>=0.135.0",
"uvicorn>=0.42.0",
"httpx>=0.28.0",
# Data validation and settings
"pydantic>=2.12.0",
"pydantic-settings>=2.13.0",
# Utilities
"python-dotenv>=1.2.0",
"loguru>=0.7.0",
"python-frontmatter>=1.1.0",
"jsonschema>=4.26.0",
"pyyaml>=6.0.0",
"click>=8.3.0",
"tqdm>=4.67.0",
# LLM - LangChain 核心(仅保留必需)
"langchain>=1.2.0",
"langchain-core>=1.2.0",
"langchain-openai>=1.1.0",
# MCP (Model Context Protocol)
"mcp>=1.26.0",
# Vector databases and search (RAG core)
# 客户端版本必须与服务端版本保持一致
"weaviate-client>=3.26.0,<4.0.0",
"elasticsearch>=8.11.0",
"redis>=7.4.0",
# Document processing (RAG core)
"pypdf>=6.9.0",
"python-docx>=1.2.0",
# Observability
"opentelemetry-api>=1.40.0",
"opentelemetry-sdk>=1.40.0",
"opentelemetry-exporter-otlp>=1.40.0",
]
[project.optional-dependencies]
# Development tools
dev = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
"black>=23.0.0",
"isort>=5.12.0",
"mypy>=1.7.0",
"ruff>=0.1.0",
]
# Terminal UI (Textual-based TUI)
tui = [
"textual>=0.47.0",
"rich>=13.0.0",
]
# Local Reranker (CrossEncoder)
reranker = [
"sentence-transformers>=3.0.0",
]
# Cohere Reranker API
cohere-rerank = [
"cohere>=5.0.0",
]
# Alternative vector database backend
milvus = [
"pymilvus>=2.4.0",
]
# Extended document processing
doc-extended = [
"pdfplumber>=0.11.0",
"beautifulsoup4>=4.12.0",
"lxml>=6.0.0",
"openpyxl>=3.1.0",
"pandas>=2.2.0",
"jq>=1.6.0;platform_system!='Windows'",
]
# Web scraping and browser automation
skills = [
"pypdf>=6.9.0",
"pdfplumber>=0.11.0",
"openpyxl>=3.1.0",
"pandas>=2.2.0",
"beautifulsoup4>=4.12.0",
"lxml>=6.0.0",
"playwright>=1.40.0",
]
# LiteLLM Proxy (统一模型代理)
litellm = [
"litellm>=1.83.0",
]
# AgentScope SDK (多智能体协作)
agentscope = [
"agentscope>=1.0.17",
]
# LangChain 扩展(按需安装)
langchain-extended = [
"langchain-community>=0.4.0",
"langchain-text-splitters>=1.1.0",
"langgraph>=1.1.0",
]
# Convenience: install all optional features
all = [
"python-agent[reranker,cohere-rerank,milvus,doc-extended,skills,litellm,agentscope]",
]
[project.urls]
Homepage = "https://github.com/yourorg/agent-framework"
Documentation = "https://agent-framework.readthedocs.io"
Repository = "https://github.com/yourorg/agent-framework"
[project.scripts]
agent-framework = "products.__main__:main"
[tool.setuptools]
# 不使用 py-modules,所有模块都在 packages 中
# py-modules = []
[tool.setuptools.packages.find]
where = ["."]
include = [
"products*",
"agent_sdk*",
"capabilities*",
"foundation*",
"interface*",
"integrate*",
"model_services*",
"orchestration*",
"state_management*",
"rag*",
"skills*",
"config*",
"evaluation*",
]
exclude = ["rag.docker*", "rag/docker*", "tests*", "__pycache__*"]
[tool.setuptools.package-data]
"*" = ["py.typed"]
[tool.black]
line-length = 100
target-version = ["py310", "py311", "py312", "py313"]
[tool.isort]
profile = "black"
line_length = 100
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
addopts = "--cov=orchestration --cov=model_services --cov=capabilities --cov=foundation --cov=interface --cov=state_management --cov-report=html --cov-report=term-missing"
[tool.ruff]
line-length = 100
select = ["E", "F", "I", "N", "W"]
ignore = ["E501"]