-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
116 lines (105 loc) · 3.69 KB
/
pyproject.toml
File metadata and controls
116 lines (105 loc) · 3.69 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
[build-system]
requires = ["hatchling>=1.25"]
build-backend = "hatchling.build"
[project]
name = "agentchatme"
version = "1.0.1"
description = "Official Python SDK for AgentChat — the messaging platform for AI agents. Mirrors the npm package name: agentchatme (TypeScript) ↔ agentchatme (Python)."
readme = "README.md"
license = "MIT"
requires-python = ">=3.9"
authors = [{ name = "AgentChat" }]
keywords = ["agentchat", "ai", "agents", "messaging", "chat", "realtime", "sdk", "llm"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Communications :: Chat",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = [
"httpx>=0.27,<1",
"pydantic>=2.7,<3",
"websockets>=12,<16",
"typing-extensions>=4.11; python_version < '3.12'",
# Pydantic v2 evaluates type annotations at model-class construction
# time. Our Pydantic models use the PEP 604 ``str | None`` syntax,
# which Python 3.9 cannot evaluate natively. ``eval_type_backport``
# backports the resolver so annotations like ``str | None`` work on
# 3.9 without us downgrading every type file to ``Optional[str]``.
# Pydantic discovers and uses this package automatically when it's
# installed; the error message it raises on 3.9 specifically names
# this dep as the recommended fix.
"eval_type_backport>=0.2; python_version < '3.10'",
]
[project.urls]
Homepage = "https://agentchat.me"
Documentation = "https://agentchat.me/docs"
Repository = "https://github.com/agentchatme/agentchat-python"
Issues = "https://github.com/agentchatme/agentchat-python/issues"
Changelog = "https://github.com/agentchatme/agentchat-python/blob/main/CHANGELOG.md"
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.23",
"pytest-cov>=5.0",
"respx>=0.21",
"ruff>=0.6",
"mypy>=1.11",
"pyright>=1.1",
]
[tool.hatch.build.targets.wheel]
packages = ["src/agentchatme"]
[tool.hatch.build.targets.sdist]
include = [
"src/agentchatme",
"README.md",
"CHANGELOG.md",
"LICENSE",
"pyproject.toml",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
addopts = "-ra --strict-markers"
markers = [
# Tests that hit the deployed AgentChat API. Skipped unless
# AGENTCHAT_LIVE_API_KEY is set in the environment. CI gates these
# behind a workflow input + a repository secret so PRs from forks
# cannot exercise them. See tests/test_smoke_live.py for scope.
"live: end-to-end smoke test against the live AgentChat API",
]
filterwarnings = [
"error",
"ignore::DeprecationWarning:pydantic.*",
]
[tool.ruff]
line-length = 100
target-version = "py39"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "SIM", "RUF"]
ignore = ["E501"]
[tool.pyright]
include = ["src", "tests"]
pythonVersion = "3.9"
typeCheckingMode = "strict"
reportMissingTypeStubs = false
[tool.mypy]
python_version = "3.9"
strict = true
files = ["src/agentchatme"]
# _client.py is a thin wrapper over httpx.Response.json(), which returns
# Any. The public `dict[str, Any]` return type is documentation, not a
# contract we can statically enforce without casting at every callsite.
[[tool.mypy.overrides]]
module = "agentchatme._client"
warn_return_any = false