raindrop-ai 0.0.31__py3-none-any.whl → 0.0.33__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.
raindrop/models.py
CHANGED
|
@@ -16,10 +16,10 @@ class Attachment(BaseModel):
|
|
|
16
16
|
language: Optional[str] = None # for code snippets
|
|
17
17
|
|
|
18
18
|
@model_validator(mode="after")
|
|
19
|
-
def _require_value(
|
|
20
|
-
if not
|
|
19
|
+
def _require_value(self):
|
|
20
|
+
if not self.value:
|
|
21
21
|
raise ValueError("value must be non-empty.")
|
|
22
|
-
return
|
|
22
|
+
return self
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
class AIData(_Base):
|
|
@@ -29,10 +29,10 @@ class AIData(_Base):
|
|
|
29
29
|
convo_id: Optional[str]
|
|
30
30
|
|
|
31
31
|
@model_validator(mode="after")
|
|
32
|
-
def _require_input_or_output(
|
|
33
|
-
if not (
|
|
32
|
+
def _require_input_or_output(self):
|
|
33
|
+
if not (self.input or self.output):
|
|
34
34
|
raise ValueError("Either 'input' or 'output' must be non-empty.")
|
|
35
|
-
return
|
|
35
|
+
return self
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
class TrackAIEvent(_Base):
|
|
@@ -94,10 +94,9 @@ class FeedbackSignal(BaseSignal):
|
|
|
94
94
|
signal_type: Literal["feedback"]
|
|
95
95
|
|
|
96
96
|
@model_validator(mode="after")
|
|
97
|
-
def _check_comment_in_properties(
|
|
97
|
+
def _check_comment_in_properties(self):
|
|
98
98
|
# Check properties safely after potential initialization
|
|
99
|
-
|
|
100
|
-
props = getattr(values, "properties", None)
|
|
99
|
+
props = self.properties
|
|
101
100
|
if not isinstance(props, dict):
|
|
102
101
|
raise ValueError("'properties' must be a dictionary for feedback signals.")
|
|
103
102
|
comment = props.get("comment")
|
|
@@ -105,7 +104,7 @@ class FeedbackSignal(BaseSignal):
|
|
|
105
104
|
raise ValueError(
|
|
106
105
|
"'properties' must contain a non-empty string 'comment' for feedback signals."
|
|
107
106
|
)
|
|
108
|
-
return
|
|
107
|
+
return self
|
|
109
108
|
|
|
110
109
|
|
|
111
110
|
class EditSignal(BaseSignal):
|
|
@@ -114,9 +113,9 @@ class EditSignal(BaseSignal):
|
|
|
114
113
|
signal_type: Literal["edit"]
|
|
115
114
|
|
|
116
115
|
@model_validator(mode="after")
|
|
117
|
-
def _check_after_in_properties(
|
|
116
|
+
def _check_after_in_properties(self):
|
|
118
117
|
# Check properties safely after potential initialization
|
|
119
|
-
props =
|
|
118
|
+
props = self.properties
|
|
120
119
|
if not isinstance(props, dict):
|
|
121
120
|
raise ValueError("'properties' must be a dictionary for edit signals.")
|
|
122
121
|
after = props.get("after")
|
|
@@ -124,7 +123,7 @@ class EditSignal(BaseSignal):
|
|
|
124
123
|
raise ValueError(
|
|
125
124
|
"'properties' must contain a non-empty string 'after' for edit signals."
|
|
126
125
|
)
|
|
127
|
-
return
|
|
126
|
+
return self
|
|
128
127
|
|
|
129
128
|
|
|
130
129
|
# Discriminated Union for Signal Events
|
raindrop/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION = "0.0.
|
|
1
|
+
VERSION = "0.0.33"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: raindrop-ai
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.33
|
|
4
4
|
Summary: Raindrop AI (Python SDK)
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Raindrop AI
|
|
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.12
|
|
14
14
|
Requires-Dist: pydantic (>=2.09,<3)
|
|
15
15
|
Requires-Dist: requests (>=2.32.3,<3.0.0)
|
|
16
|
-
Requires-Dist: traceloop-sdk (
|
|
16
|
+
Requires-Dist: traceloop-sdk (>=0.46.0)
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
|
|
19
19
|
# Raindrop Python SDK
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
raindrop/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
raindrop/analytics.py,sha256=XHCXHM-S92ZAgsigPrDovUDTSlHiLLfuIHHEq9wnpTY,24354
|
|
3
3
|
raindrop/interaction.py,sha256=1gYFj2-oEobLtG56RZw5de3RjYr0pCXg_NqYDGx32Uc,1896
|
|
4
|
-
raindrop/models.py,sha256=
|
|
4
|
+
raindrop/models.py,sha256=9lOOUQ2FF11RPkntuLZwN3e54pa9HtR8lGvCbzlWOPM,5198
|
|
5
5
|
raindrop/redact.py,sha256=rMNUoI90KxOY3d_zcHAr0TFD2yQ_CDgpDz-1XJLVmHs,7658
|
|
6
|
-
raindrop/version.py,sha256=
|
|
6
|
+
raindrop/version.py,sha256=r9SP9JQ4MmKuCsGNCasfnixShvXyZegpIMu6VPpDA74,19
|
|
7
7
|
raindrop/well-known-names.json,sha256=9giJF6u6W1R0APW-Pf1dvNUU32OXQEoQ9CBQXSnA3ks,144403
|
|
8
|
-
raindrop_ai-0.0.
|
|
9
|
-
raindrop_ai-0.0.
|
|
10
|
-
raindrop_ai-0.0.
|
|
8
|
+
raindrop_ai-0.0.33.dist-info/METADATA,sha256=Pk62BZYFx08QT7SCh_R5cYRB3EBH4WDKmMUGsLTGGUs,1269
|
|
9
|
+
raindrop_ai-0.0.33.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
10
|
+
raindrop_ai-0.0.33.dist-info/RECORD,,
|
|
File without changes
|