bynn-decisionnode 0.3.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,19 @@
1
+ decisionnode/__init__.py,sha256=_T2vpyzSHwmP6JkjCpFJkQj2WxGLBH66yoPVyk4Aj60,4100
2
+ decisionnode/_base.py,sha256=d835Qx7bpmCPeSEfErJ63tGU8G5OVXmYHmpO4e-t9wY,20501
3
+ decisionnode/_batches.py,sha256=ocnEEyNxEVDcMmpLPpCv4uaZJZBPP_hylXqB36056wk,11337
4
+ decisionnode/_boosters.py,sha256=HeMyIb9x-hYfvFmRwn5PauKa8-hx1qXSF-nZBt9pNt8,19065
5
+ decisionnode/_client.py,sha256=MpHKdvH0DbuhhOY68Doh3oyNc74pUccEbDyULRbtw5g,95394
6
+ decisionnode/_errors.py,sha256=3W0Q4KcogGO_M9fotub10hdn7qV5bJZ2KPzysUDS-1k,8090
7
+ decisionnode/_images.py,sha256=K2wVEPf3i0IVvcZ0gR1paSE--lYNXNijLTsk3nKuWk4,11643
8
+ decisionnode/_questions.py,sha256=d9XNHsKPj2afiAfgNPJh7eBa5A1dHk8_Em8EM068gIE,9945
9
+ decisionnode/_sessions.py,sha256=pD7jelwzsZcrii7FkCtL-jZmMA4E5xFA7BefuZ7Qu0M,27341
10
+ decisionnode/_types.py,sha256=uayo45xvK-w5uj0LXKKVrA0ZXoaLxE4LBWN10BBvidI,27263
11
+ decisionnode/_uploads.py,sha256=bzdRtjODxX3QBFA2WYonuo2bhPkftau17tLzklH-PCM,9336
12
+ decisionnode/_validate.py,sha256=mYCSR7KfChikaCT50ZCJvl_Jy5umCoM30T7MCJ2ChK8,38685
13
+ decisionnode/_version.py,sha256=CkcvBM6QEnvx1fXHeBuExZzp4C7m2knZgbJ2xnRJ9ME,153
14
+ decisionnode/_videos.py,sha256=MOcm9lZcY5DEEHpMv-WeUOR6ww1RImw44O0iciNgeq4,8668
15
+ decisionnode/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
+ bynn_decisionnode-0.3.1.dist-info/METADATA,sha256=N7Rs4xw81lvreY-LqhN1LN0h-qSsLTCGXYfAhysj0HI,47221
17
+ bynn_decisionnode-0.3.1.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
18
+ bynn_decisionnode-0.3.1.dist-info/licenses/LICENSE,sha256=5ayNy6Skb9Hf7A6d7rchtzeXEoJSbJ0BpAdleBo0JdE,1080
19
+ bynn_decisionnode-0.3.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Bynn Intelligence, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,195 @@
1
+ """DecisionNode for Python.
2
+
3
+ from decisionnode import DecisionNode, truth, choice, score, number
4
+
5
+ dn = DecisionNode() # reads DECISIONNODE_API_KEY
6
+ d = dn.decide(
7
+ state={"ticket": "I was charged twice and nobody has replied for 3 days."},
8
+ questions={
9
+ "route": choice("Where should this go?", ["billing", "bug", "account"]),
10
+ "escalate": truth("Escalate to a human now?"),
11
+ "days": number("How many days has the customer waited?", min=0, max=30),
12
+ },
13
+ )
14
+ d["route"].choice # "billing"
15
+ d["escalate"].truth # 0.94
16
+ d["days"].number # 3
17
+ """
18
+
19
+ from ._batches import AsyncBatchResults, Batch, BatchPage, BatchResult, BatchResults, BatchRun
20
+ from ._boosters import (
21
+ AgeReading,
22
+ AiGeneratedReading,
23
+ AnyReading,
24
+ Booster,
25
+ BoosterInput,
26
+ BoosterStatus,
27
+ Evidence,
28
+ FaceBox,
29
+ FaceDetection,
30
+ FaceDetectionReading,
31
+ FaceMatch,
32
+ FaceRecognitionReading,
33
+ OcrReading,
34
+ Reading,
35
+ TopGenerator,
36
+ UnknownReading,
37
+ )
38
+ from ._client import AsyncBatches, AsyncDecisionNode, Batches, BatchRequest, DecideRequest, DecisionNode, DecisionResult
39
+ from ._errors import (
40
+ AuthenticationError,
41
+ BadRequestError,
42
+ ConnectionError,
43
+ ContextLimitError,
44
+ DecisionNodeError,
45
+ InsufficientCreditError,
46
+ NotFoundError,
47
+ OverloadedError,
48
+ PermissionDeniedError,
49
+ RateLimitError,
50
+ RefusalError,
51
+ RequestTooLargeError,
52
+ ServerError,
53
+ SessionLimitError,
54
+ TimeoutError,
55
+ ValidationError,
56
+ )
57
+ from ._images import DEFAULT_INLINE_THRESHOLD, Image
58
+ from ._questions import (
59
+ BoxQuestion,
60
+ ChoiceQuestion,
61
+ NumberQuestion,
62
+ PointQuestion,
63
+ Question,
64
+ ScoreQuestion,
65
+ TruthQuestion,
66
+ box,
67
+ choice,
68
+ number,
69
+ point,
70
+ score,
71
+ truth,
72
+ )
73
+ from ._sessions import AsyncSession, FrameError, Reply, Session, SessionClosed, SessionEvent
74
+ from ._types import (
75
+ Answer,
76
+ AnyAnswer,
77
+ BoxAnswer,
78
+ BoxesAnswer,
79
+ BoxPlace,
80
+ ChoiceAnswer,
81
+ Cost,
82
+ Decision,
83
+ Fallback,
84
+ ModelInfo,
85
+ NumberAnswer,
86
+ PointAnswer,
87
+ PointPlace,
88
+ PointsAnswer,
89
+ Safety,
90
+ ScoreAnswer,
91
+ TruthAnswer,
92
+ UnknownAnswer,
93
+ Usage,
94
+ )
95
+ from ._version import SPEC_VERSION, __version__
96
+ from ._videos import Video, VideoFrame
97
+
98
+ __all__ = [
99
+ "__version__",
100
+ "SPEC_VERSION",
101
+ "DEFAULT_INLINE_THRESHOLD",
102
+ # clients
103
+ "DecisionNode",
104
+ "AsyncDecisionNode",
105
+ "DecideRequest",
106
+ "DecisionResult",
107
+ # questions
108
+ "truth",
109
+ "choice",
110
+ "score",
111
+ "number",
112
+ "point",
113
+ "box",
114
+ "Question",
115
+ "TruthQuestion",
116
+ "ChoiceQuestion",
117
+ "ScoreQuestion",
118
+ "NumberQuestion",
119
+ "PointQuestion",
120
+ "BoxQuestion",
121
+ "Image",
122
+ "Video",
123
+ "VideoFrame",
124
+ # boosters
125
+ "Booster",
126
+ "BoosterInput",
127
+ # results
128
+ "Decision",
129
+ "Fallback",
130
+ "Answer",
131
+ "AnyAnswer",
132
+ "TruthAnswer",
133
+ "ChoiceAnswer",
134
+ "ScoreAnswer",
135
+ "NumberAnswer",
136
+ "PointAnswer",
137
+ "BoxAnswer",
138
+ "PointsAnswer",
139
+ "BoxesAnswer",
140
+ "PointPlace",
141
+ "BoxPlace",
142
+ "UnknownAnswer",
143
+ "Cost",
144
+ "Usage",
145
+ "Safety",
146
+ "ModelInfo",
147
+ "Evidence",
148
+ "Reading",
149
+ "AnyReading",
150
+ "AgeReading",
151
+ "AiGeneratedReading",
152
+ "OcrReading",
153
+ "FaceBox",
154
+ "FaceDetection",
155
+ "FaceDetectionReading",
156
+ "FaceMatch",
157
+ "FaceRecognitionReading",
158
+ "TopGenerator",
159
+ "UnknownReading",
160
+ "BoosterStatus",
161
+ # sessions
162
+ "Session",
163
+ "AsyncSession",
164
+ "Reply",
165
+ "FrameError",
166
+ "SessionClosed",
167
+ "SessionEvent",
168
+ # batches
169
+ "Batches",
170
+ "AsyncBatches",
171
+ "BatchRequest",
172
+ "Batch",
173
+ "BatchPage",
174
+ "BatchResult",
175
+ "BatchResults",
176
+ "AsyncBatchResults",
177
+ "BatchRun",
178
+ # errors
179
+ "DecisionNodeError",
180
+ "BadRequestError",
181
+ "ContextLimitError",
182
+ "AuthenticationError",
183
+ "InsufficientCreditError",
184
+ "RefusalError",
185
+ "PermissionDeniedError",
186
+ "NotFoundError",
187
+ "RequestTooLargeError",
188
+ "ValidationError",
189
+ "RateLimitError",
190
+ "SessionLimitError",
191
+ "OverloadedError",
192
+ "ServerError",
193
+ "ConnectionError",
194
+ "TimeoutError",
195
+ ]