simile 0.2.2__py3-none-any.whl → 0.2.3__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 +8 -1
- {simile-0.2.2.dist-info → simile-0.2.3.dist-info}/METADATA +2 -2
- simile-0.2.3.dist-info/RECORD +10 -0
- simile-0.2.2.dist-info/RECORD +0 -10
- {simile-0.2.2.dist-info → simile-0.2.3.dist-info}/WHEEL +0 -0
- {simile-0.2.2.dist-info → simile-0.2.3.dist-info}/licenses/LICENSE +0 -0
- {simile-0.2.2.dist-info → simile-0.2.3.dist-info}/top_level.txt +0 -0
simile/client.py
CHANGED
|
@@ -101,6 +101,13 @@ class Simile:
|
|
|
101
101
|
response_data = await self._request("DELETE", f"populations/delete/{str(population_id)}", response_model=DeletionResponse)
|
|
102
102
|
return response_data
|
|
103
103
|
|
|
104
|
+
async def get_agents_in_population(self, population_id: Union[str, uuid.UUID]) -> List[AgentModel]:
|
|
105
|
+
"""Retrieves all agents belonging to a specific population."""
|
|
106
|
+
endpoint = f"populations/{str(population_id)}/agents"
|
|
107
|
+
raw_response = await self._request("GET", endpoint)
|
|
108
|
+
agents_data_list = raw_response.model_dump_json()
|
|
109
|
+
return [AgentModel(**data) for data in agents_data_list]
|
|
110
|
+
|
|
104
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:
|
|
105
112
|
"""Creates a new agent, optionally within a population and with initial data items."""
|
|
106
113
|
pop_id_uuid: Optional[uuid.UUID] = None
|
|
@@ -135,7 +142,7 @@ class Simile:
|
|
|
135
142
|
params["data_type"] = data_type
|
|
136
143
|
agent_id_str = str(agent_id)
|
|
137
144
|
raw_response = await self._request("GET", f"data_item/list/{agent_id_str}", params=params)
|
|
138
|
-
return [DataItem(**item) for item in raw_response.
|
|
145
|
+
return [DataItem(**item) for item in raw_response.model_dump_json()]
|
|
139
146
|
|
|
140
147
|
async def update_data_item(self, data_item_id: Union[str, uuid.UUID], content: Any) -> DataItem:
|
|
141
148
|
"""Updates an existing data item."""
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: simile
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: Package for interfacing with Simile AI agents for simulation
|
|
5
5
|
Author-email: Simile AI <cqz@simile.ai>
|
|
6
|
-
License
|
|
6
|
+
License: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/simile-team/simile-sdk
|
|
8
8
|
Keywords: api,sdk,simile,ai-agent,simulation
|
|
9
9
|
Classifier: Development Status :: 3 - Alpha
|
|
@@ -0,0 +1,10 @@
|
|
|
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,,
|
simile-0.2.2.dist-info/RECORD
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
simile/__init__.py,sha256=2OZ1LQIkAEtSs0EI5Fzlg7QGKduCgCe_nTh9FfIuHlQ,865
|
|
2
|
-
simile/client.py,sha256=rBXGfuD1kMlzHCXaqaPNzuzoqqDe5tTWH28Szg6DMCI,8534
|
|
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.2.dist-info/licenses/LICENSE,sha256=tpxX3bpODfyOQVyEM6kCMvPHFCpkjFDj0AICRqKqOFA,1066
|
|
7
|
-
simile-0.2.2.dist-info/METADATA,sha256=MCSE0Rjd8xR-WdsU3Igz0YLY6Bvh7NM64mC6T9753AA,1256
|
|
8
|
-
simile-0.2.2.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
|
9
|
-
simile-0.2.2.dist-info/top_level.txt,sha256=41lJneubAG4-ZOAs5qn7iDtDb-MDxa6DdvgBKwNX84M,7
|
|
10
|
-
simile-0.2.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|