Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
168 lines (155 loc) · 4.89 KB
/
Copy pathpyproject.toml
File metadata and controls
168 lines (155 loc) · 4.89 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
[build-system]
requires = ["hatchling>=1.25"]
build-backend = "hatchling.build"
[project]
name = "thinkless"
dynamic = ["version"]
description = "Stop using an LLM for every decision. Rules and small local models answer an AI agent's routine decisions, including ones learned from its own LLM once proven; the LLM keeps the steps that need it, and every step is traced."
readme = "README.md"
requires-python = ">=3.10"
license = "Apache-2.0"
license-files = ["LICENSE"]
authors = [{ name = "Praveen Kumar" }]
keywords = [
"agents",
"ai-agents",
"llm",
"llm-routing",
"llm-cost",
"cost-optimization",
"knowledge-distillation",
"openai",
"anthropic",
"langchain",
"decision-models",
"guardrails",
"langgraph",
"openai-agents",
"mcp",
"benchmark",
"calibration",
"classification",
"observability",
"tracing",
"system-one",
"jev",
"laya",
"gliner",
]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Pydantic :: 2",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = [
"pydantic>=2.6,<3",
"httpx>=0.27,<1",
"numpy>=1.24",
"rich>=13.7",
"typer>=0.12",
"tomli>=2.0; python_version < '3.11'",
]
[project.optional-dependencies]
# Local decision models. GLiNER2 caps transformers below 5, so every local
# extra shares that bound to keep one resolvable environment.
gliner = [
"gliner2[local]>=2.0,<3",
"transformers>=4.48,<5",
"protobuf>=4.25",
"sentencepiece>=0.2",
]
laya = ["laya>=0.4.17,<0.5", "transformers>=4.48,<5"]
local-llm = ["transformers>=4.48,<5", "accelerate>=1.0", "torch>=2.1"]
local = ["thinkless[gliner,laya,local-llm]"]
# Hosted reasoning backends.
openai = ["openai>=2.0"]
anthropic = ["anthropic>=1.0"]
# Observability export.
otel = [
"opentelemetry-api>=1.25",
"opentelemetry-sdk>=1.25",
"opentelemetry-exporter-otlp-proto-http>=1.25",
]
# Public dataset benchmarks.
bench = ["datasets>=3.0"]
# Agent framework adapters (thinkless.integrations).
langgraph = ["langgraph>=1.0"]
openai-agents = ["openai-agents>=0.22"]
# The decision server (thinkless serve) and MCP tools (thinkless mcp).
server = ["fastapi>=0.115", "uvicorn>=0.30"]
mcp = ["mcp>=1.10"]
all = ["thinkless[local,openai,anthropic,otel,bench,langgraph,openai-agents,server,mcp]"]
dev = [
"pytest>=8",
"pytest-cov>=5",
"ruff>=0.6",
"mypy>=1.10",
"typesafe-sdk>=0.7",
"mkdocs-material>=9.5",
"mkdocstrings[python]>=0.26",
"langgraph>=1.0",
"openai-agents>=0.22",
"pydantic-ai-slim>=1.0",
"langchain-openai>=0.3",
"fastapi>=0.115",
"mcp>=1.10",
]
[project.urls]
Homepage = "https://github.com/inboxpraveen/ThinkLess"
Documentation = "https://inboxpraveen.github.io/ThinkLess/"
Repository = "https://github.com/inboxpraveen/ThinkLess"
Issues = "https://github.com/inboxpraveen/ThinkLess/issues"
Discussions = "https://github.com/inboxpraveen/ThinkLess/discussions"
Changelog = "https://github.com/inboxpraveen/ThinkLess/blob/main/CHANGELOG.md"
"Release notes" = "https://github.com/inboxpraveen/ThinkLess/releases"
"Decision benchmark" = "https://inboxpraveen.github.io/ThinkLess/decision-benchmark/leaderboard/"
Funding = "https://github.com/sponsors/inboxpraveen"
[project.scripts]
thinkless = "thinkless.cli.main:app"
[tool.hatch.version]
path = "src/thinkless/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["src/thinkless"]
[tool.hatch.build.targets.sdist]
include = ["src/thinkless", "tests", "README.md", "LICENSE", "CHANGELOG.md"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra --strict-markers -m 'not local and not network'"
markers = [
"local: needs local model weights and runs real inference (opt in with -m local)",
"network: calls a hosted API and needs credentials (opt in with -m network)",
]
filterwarnings = ["ignore::DeprecationWarning:typer.*"]
[tool.coverage.run]
source = ["thinkless"]
omit = ["src/thinkless/providers/laya.py", "src/thinkless/providers/gliner.py", "src/thinkless/llm/local.py"]
[tool.ruff]
line-length = 100
target-version = "py310"
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "B", "UP", "SIM", "RUF", "N", "C4", "PT", "RET"]
ignore = ["E501", "RUF001", "RUF002", "RUF003"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["PT011"]
[tool.mypy]
python_version = "3.12"
packages = ["thinkless"]
mypy_path = "src"
strict_optional = true
warn_unused_ignores = true
warn_redundant_casts = true
disallow_untyped_defs = true
ignore_missing_imports = true