simile 0.3.12__py3-none-any.whl → 0.3.13__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
@@ -254,6 +254,18 @@ class Simile:
254
254
  "DELETE", f"agents/{str(agent_id)}/populations/{str(population_id)}"
255
255
  )
256
256
  return raw_response.json()
257
+
258
+ async def batch_add_agents_to_population(
259
+ self, agent_ids: List[Union[str, uuid.UUID]], population_id: Union[str, uuid.UUID]
260
+ ) -> Dict[str, Any]:
261
+ """Add multiple agents to a population in a single batch operation."""
262
+ agent_id_strs = [str(aid) for aid in agent_ids]
263
+ raw_response = await self._request(
264
+ "POST",
265
+ f"populations/{str(population_id)}/agents/batch",
266
+ json=agent_id_strs
267
+ )
268
+ return raw_response.json()
257
269
 
258
270
  async def get_populations_for_agent(
259
271
  self, agent_id: Union[str, uuid.UUID]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: simile
3
- Version: 0.3.12
3
+ Version: 0.3.13
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=D88zktKWLzF2EgbNm743Ype_p4s7xXWvNEQBr6mRsCI,1034
2
2
  simile/auth_client.py,sha256=ICImmaA5fZX9ADbIPIUh4RED3hBZvLf3XSiaqELDAME,7923
3
- simile/client.py,sha256=EdOUXgkvIhGL1p1FXO8XiYn-lHyDJGuMoDC1K_Ll74A,16732
3
+ simile/client.py,sha256=3jAPq-xO0SEJrxSctP8gKGUTd5_Ae_gd8W12q6lMmq4,17237
4
4
  simile/exceptions.py,sha256=Q1lbfwR7mEn_LYmwjAnsMc8BW79JNPvmCmVoPibYisU,1502
5
5
  simile/models.py,sha256=pT5jDIwVPlPIOK4qQ1CkyrYp0dLZqFCQTWmGX07dGug,5713
6
6
  simile/resources.py,sha256=D6K3crR4tb3CAFH7mF-y536pJwJ3rmNDCtm7Y2vMtsc,10347
7
- simile-0.3.12.dist-info/licenses/LICENSE,sha256=tpxX3bpODfyOQVyEM6kCMvPHFCpkjFDj0AICRqKqOFA,1066
8
- simile-0.3.12.dist-info/METADATA,sha256=tHwqTkgi4GKNJsLuBefJJ-zzVpOlZEmKt_T-c-Zp12U,1599
9
- simile-0.3.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
10
- simile-0.3.12.dist-info/top_level.txt,sha256=41lJneubAG4-ZOAs5qn7iDtDb-MDxa6DdvgBKwNX84M,7
11
- simile-0.3.12.dist-info/RECORD,,
7
+ simile-0.3.13.dist-info/licenses/LICENSE,sha256=tpxX3bpODfyOQVyEM6kCMvPHFCpkjFDj0AICRqKqOFA,1066
8
+ simile-0.3.13.dist-info/METADATA,sha256=LADql4T3haDvtDGmmzmal-lnLY40ryR_RvDzDDnxX2g,1599
9
+ simile-0.3.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
10
+ simile-0.3.13.dist-info/top_level.txt,sha256=41lJneubAG4-ZOAs5qn7iDtDb-MDxa6DdvgBKwNX84M,7
11
+ simile-0.3.13.dist-info/RECORD,,