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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: raindrop-ai
3
- Version: 0.0.21
3
+ Version: 0.0.22
4
4
  Summary: Raindrop AI (Python SDK)
5
5
  License: MIT
6
6
  Author: Raindrop AI
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "raindrop-ai"
3
- version = "0.0.21"
3
+ version = "0.0.22"
4
4
  description = "Raindrop AI (Python SDK)"
5
5
  authors = ["Raindrop AI <sdk@raindrop.ai>"]
6
6
  license = "MIT"
@@ -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