1、重构Agent代码
2、实现WebSocket连接服务
This commit is contained in:
1 parent
2c1bac9bcb
commit
77ff26094d
16 files changed
+871
-322
No files matched your search
@@ -8,10 +8,14 @@ authors = [
|
||||
]
|
||||
requires-python = ">=3.15"
|
||||
dependencies = [
|
||||
"fastapi>=0.162.0",
|
||||
"openai>=3.42.0",
|
||||
"pydantic>=2.14.2",
|
||||
"pyodbc>=5.3.0",
|
||||
"python-dotenv>=1.2.4",
|
||||
"sqlalchemy>=2.1.6",
|
||||
"tavily-python>=0.8.5",
|
||||
"uvicorn[standard]>=0.54.0",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
@@ -20,3 +24,38 @@ mini-agent = "mini_agent:main"
|
||||
[build-system]
|
||||
requires = ["uv_build>=0.13.6,<0.14.0"]
|
||||
build-backend = "uv_build"
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 100
|
||||
indent-width = 4
|
||||
target-version = "py315"
|
||||
|
||||
[tool.ruff.format]
|
||||
quote-style = "double"
|
||||
indent-style = "space"
|
||||
line-ending = "lf"
|
||||
|
||||
# 多行参数尽量保留尾随逗号
|
||||
skip-magic-trailing-comma = false
|
||||
|
||||
# 自动格式化 docstring
|
||||
docstring-code-format = true
|
||||
docstring-code-line-length = 88
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = [
|
||||
"E", # pycodestyle
|
||||
"F", # Pyflakes
|
||||
"I", # isort
|
||||
"UP", # pyupgrade
|
||||
"B", # flake8-bugbear
|
||||
"SIM", # flake8-simplify
|
||||
]
|
||||
|
||||
ignore = [
|
||||
"E501", # 行长度交给 formatter
|
||||
]
|
||||
|
||||
[tool.ruff.lint.isort]
|
||||
combine-as-imports = true
|
||||
force-sort-within-sections = true
|
||||
Reference in new issue
Block a user