simile 0.4.7__py3-none-any.whl → 0.4.8__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.

Potentially problematic release.


This version of simile might be problematic. Click here for more details.

simile/client.py CHANGED
@@ -186,7 +186,7 @@ class Simile:
186
186
  response_data = await self._request(
187
187
  "PATCH",
188
188
  f"populations/{str(population_id)}/metadata",
189
- json=payload.model_dump(mode="json", exclude_none=True),
189
+ json=payload,
190
190
  response_model=Population,
191
191
  )
192
192
  return response_data
@@ -445,6 +445,8 @@ class Simile:
445
445
  self,
446
446
  agent_id: uuid.UUID,
447
447
  question: str,
448
+ question_id: Optional[str] = None,
449
+ study_id: Optional[str] = None,
448
450
  data_types: Optional[List[str]] = None,
449
451
  exclude_data_types: Optional[List[str]] = None,
450
452
  images: Optional[Dict[str, str]] = None,
@@ -465,6 +467,8 @@ class Simile:
465
467
  Args:
466
468
  agent_id: The agent to query
467
469
  question: The question to ask
470
+ question_id: Optional question ID for tracking
471
+ study_id: Optional study ID for tracking
468
472
  data_types: Optional data types to include
469
473
  exclude_data_types: Optional data types to exclude
470
474
  images: Optional images dict
@@ -478,6 +482,8 @@ class Simile:
478
482
  # Build request payload directly as dict to avoid serialization issues
479
483
  request_payload = {
480
484
  "question": question,
485
+ "question_id": question_id,
486
+ "study_id": study_id,
481
487
  "data_types": data_types,
482
488
  "exclude_data_types": exclude_data_types,
483
489
  "images": images,
@@ -516,6 +522,8 @@ class Simile:
516
522
  agent_id: uuid.UUID,
517
523
  question: str,
518
524
  options: List[str],
525
+ question_id: Optional[str] = None,
526
+ study_id: Optional[str] = None,
519
527
  data_types: Optional[List[str]] = None,
520
528
  exclude_data_types: Optional[List[str]] = None,
521
529
  images: Optional[Dict[str, str]] = None,
@@ -537,6 +545,8 @@ class Simile:
537
545
  agent_id: The agent to query
538
546
  question: The question to ask
539
547
  options: The options to choose from
548
+ question_id: Optional question ID for tracking
549
+ study_id: Optional study ID for tracking
540
550
  data_types: Optional data types to include
541
551
  exclude_data_types: Optional data types to exclude
542
552
  images: Optional images dict
@@ -551,6 +561,8 @@ class Simile:
551
561
  request_payload = {
552
562
  "question": question,
553
563
  "options": options,
564
+ "question_id": question_id,
565
+ "study_id": study_id,
554
566
  "data_types": data_types,
555
567
  "exclude_data_types": exclude_data_types,
556
568
  "images": images,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: simile
3
- Version: 0.4.7
3
+ Version: 0.4.8
4
4
  Summary: Package for interfacing with Simile AI agents for simulation
5
5
  Author-email: Simile AI <cqz@simile.ai>
6
6
  License: MIT
@@ -1,11 +1,11 @@
1
1
  simile/__init__.py,sha256=JAYtieyGg6YYiCackJ6YNlGJkFWmhryzbwwVt4K67uI,1360
2
2
  simile/auth_client.py,sha256=ICImmaA5fZX9ADbIPIUh4RED3hBZvLf3XSiaqELDAME,7923
3
- simile/client.py,sha256=KYobbwOWcK6DBYF0CmbbmT6bp7O7hXB2AmSVMu2yh1k,28177
3
+ simile/client.py,sha256=58VXmaQkYdodRDnbT35cjzJI1qJJLE-Yswzd0yz4fi8,28672
4
4
  simile/exceptions.py,sha256=Q1lbfwR7mEn_LYmwjAnsMc8BW79JNPvmCmVoPibYisU,1502
5
5
  simile/models.py,sha256=qYXQ7KCKLsWf8TkbBlJUDU2kLZPZ69WIjX8DlavB_Bk,12316
6
6
  simile/resources.py,sha256=LSYZSzx1YO69xvShGxxLFVPjQHw1WukHXhdYc1EyuOs,10555
7
- simile-0.4.7.dist-info/licenses/LICENSE,sha256=tpxX3bpODfyOQVyEM6kCMvPHFCpkjFDj0AICRqKqOFA,1066
8
- simile-0.4.7.dist-info/METADATA,sha256=mM5Clf3e_G0PLSf-Tn-quzAKQdmo2A6oGFsDd4OteEU,1598
9
- simile-0.4.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
10
- simile-0.4.7.dist-info/top_level.txt,sha256=41lJneubAG4-ZOAs5qn7iDtDb-MDxa6DdvgBKwNX84M,7
11
- simile-0.4.7.dist-info/RECORD,,
7
+ simile-0.4.8.dist-info/licenses/LICENSE,sha256=tpxX3bpODfyOQVyEM6kCMvPHFCpkjFDj0AICRqKqOFA,1066
8
+ simile-0.4.8.dist-info/METADATA,sha256=aXSJpy9mMumVHrYoWsQZcwnQ5ZOqb7UAvMkW3p8gAmg,1598
9
+ simile-0.4.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
10
+ simile-0.4.8.dist-info/top_level.txt,sha256=41lJneubAG4-ZOAs5qn7iDtDb-MDxa6DdvgBKwNX84M,7
11
+ simile-0.4.8.dist-info/RECORD,,
File without changes