simile 0.2.3__py3-none-any.whl → 0.2.4__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
@@ -105,7 +105,7 @@ class Simile:
105
105
  """Retrieves all agents belonging to a specific population."""
106
106
  endpoint = f"populations/{str(population_id)}/agents"
107
107
  raw_response = await self._request("GET", endpoint)
108
- agents_data_list = raw_response.model_dump_json()
108
+ agents_data_list = raw_response.json()
109
109
  return [AgentModel(**data) for data in agents_data_list]
110
110
 
111
111
  async def create_agent(self, name: str, population_id: Optional[Union[str, uuid.UUID]] = None, agent_data: Optional[List[Dict[str, Any]]] = None) -> AgentModel:
@@ -142,7 +142,7 @@ class Simile:
142
142
  params["data_type"] = data_type
143
143
  agent_id_str = str(agent_id)
144
144
  raw_response = await self._request("GET", f"data_item/list/{agent_id_str}", params=params)
145
- return [DataItem(**item) for item in raw_response.model_dump_json()]
145
+ return [DataItem(**item) for item in raw_response.json()]
146
146
 
147
147
  async def update_data_item(self, data_item_id: Union[str, uuid.UUID], content: Any) -> DataItem:
148
148
  """Updates an existing data item."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: simile
3
- Version: 0.2.3
3
+ Version: 0.2.4
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
@@ -0,0 +1,10 @@
1
+ simile/__init__.py,sha256=2OZ1LQIkAEtSs0EI5Fzlg7QGKduCgCe_nTh9FfIuHlQ,865
2
+ simile/client.py,sha256=cSjSb-kwQnEHrXp6revpN1WNT5tFHA6qwK8E3kzHhzs,8944
3
+ simile/exceptions.py,sha256=-rJ3KZcpvNRi9JXbDpxWDSL2lU1mEJX2piwYRZvhKmg,1406
4
+ simile/models.py,sha256=bdvKNT10VlZHC51S5U1vpm2i-HV-2hVVeQZFOB-5jmQ,2104
5
+ simile/resources.py,sha256=n6TSuqEplO0Gyim-pqhrrxg8yPqsHWcFflOcZpd-uVo,2950
6
+ simile-0.2.4.dist-info/licenses/LICENSE,sha256=tpxX3bpODfyOQVyEM6kCMvPHFCpkjFDj0AICRqKqOFA,1066
7
+ simile-0.2.4.dist-info/METADATA,sha256=9SGu2SHq6qz6608onUdFSVzO-0EzmN2QtlrGocjupy8,1245
8
+ simile-0.2.4.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
9
+ simile-0.2.4.dist-info/top_level.txt,sha256=41lJneubAG4-ZOAs5qn7iDtDb-MDxa6DdvgBKwNX84M,7
10
+ simile-0.2.4.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- simile/__init__.py,sha256=2OZ1LQIkAEtSs0EI5Fzlg7QGKduCgCe_nTh9FfIuHlQ,865
2
- simile/client.py,sha256=RUwJ9AN8rhAHTUfLba4uQXeP4eT4IF-pm6flWuuBUOU,8966
3
- simile/exceptions.py,sha256=-rJ3KZcpvNRi9JXbDpxWDSL2lU1mEJX2piwYRZvhKmg,1406
4
- simile/models.py,sha256=bdvKNT10VlZHC51S5U1vpm2i-HV-2hVVeQZFOB-5jmQ,2104
5
- simile/resources.py,sha256=n6TSuqEplO0Gyim-pqhrrxg8yPqsHWcFflOcZpd-uVo,2950
6
- simile-0.2.3.dist-info/licenses/LICENSE,sha256=tpxX3bpODfyOQVyEM6kCMvPHFCpkjFDj0AICRqKqOFA,1066
7
- simile-0.2.3.dist-info/METADATA,sha256=JbNwyPSup57sSsp0VegYaxp4EWrEyu6ncQlITB-LQvE,1245
8
- simile-0.2.3.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
9
- simile-0.2.3.dist-info/top_level.txt,sha256=41lJneubAG4-ZOAs5qn7iDtDb-MDxa6DdvgBKwNX84M,7
10
- simile-0.2.3.dist-info/RECORD,,
File without changes