raindrop-ai 0.0.21__tar.gz → 0.0.22__tar.gz
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_ai-0.0.21 → raindrop_ai-0.0.22}/PKG-INFO +1 -1
- {raindrop_ai-0.0.21 → raindrop_ai-0.0.22}/pyproject.toml +1 -1
- {raindrop_ai-0.0.21 → raindrop_ai-0.0.22}/raindrop/analytics.py +4 -3
- {raindrop_ai-0.0.21 → raindrop_ai-0.0.22}/README.md +0 -0
- {raindrop_ai-0.0.21 → raindrop_ai-0.0.22}/raindrop/__init__.py +0 -0
- {raindrop_ai-0.0.21 → raindrop_ai-0.0.22}/raindrop/interaction.py +0 -0
- {raindrop_ai-0.0.21 → raindrop_ai-0.0.22}/raindrop/models.py +0 -0
- {raindrop_ai-0.0.21 → raindrop_ai-0.0.22}/raindrop/version.py +0 -0
|
@@ -176,7 +176,7 @@ def track_ai(
|
|
|
176
176
|
payload.properties = {}
|
|
177
177
|
payload.properties["$context"] = _get_context()
|
|
178
178
|
|
|
179
|
-
data = payload.model_dump()
|
|
179
|
+
data = payload.model_dump(mode="json")
|
|
180
180
|
|
|
181
181
|
size = _get_size(data)
|
|
182
182
|
if size > max_ingest_size_bytes:
|
|
@@ -315,6 +315,7 @@ def begin(
|
|
|
315
315
|
properties: Optional[Dict[str, Any]] = None,
|
|
316
316
|
input: Optional[str] = None,
|
|
317
317
|
attachments: Optional[List[Attachment]] = None,
|
|
318
|
+
convo_id: Optional[str] = None,
|
|
318
319
|
) -> Interaction:
|
|
319
320
|
"""
|
|
320
321
|
Starts (or resumes) an interaction and returns a helper object.
|
|
@@ -324,7 +325,7 @@ def begin(
|
|
|
324
325
|
# Prepare ai_data if input is provided
|
|
325
326
|
ai_data_partial = None
|
|
326
327
|
if input:
|
|
327
|
-
ai_data_partial = PartialAIData(input=input)
|
|
328
|
+
ai_data_partial = PartialAIData(input=input, convo_id=convo_id)
|
|
328
329
|
|
|
329
330
|
# Combine properties with initial_fields, giving precedence to initial_fields if keys clash
|
|
330
331
|
final_properties = (properties or {}).copy()
|
|
@@ -335,7 +336,7 @@ def begin(
|
|
|
335
336
|
event=event,
|
|
336
337
|
ai_data=ai_data_partial,
|
|
337
338
|
properties=final_properties or None, # Pass None if empty, matching PartialTrackAIEvent defaults
|
|
338
|
-
attachments=attachments
|
|
339
|
+
attachments=attachments,
|
|
339
340
|
)
|
|
340
341
|
|
|
341
342
|
_track_ai_partial(partial_event)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|