simile 0.3.5__tar.gz → 0.3.6__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.

Potentially problematic release.


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

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: simile
3
- Version: 0.3.5
3
+ Version: 0.3.6
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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "simile"
7
- version = "0.3.5"
7
+ version = "0.3.6"
8
8
  authors = [
9
9
  { name="Simile AI", email="cqz@simile.ai" },
10
10
  ]
@@ -233,6 +233,31 @@ class Simile:
233
233
  )
234
234
  return response_data
235
235
 
236
+ async def add_agent_to_population(
237
+ self, agent_id: Union[str, uuid.UUID], population_id: Union[str, uuid.UUID]
238
+ ) -> Dict[str, str]:
239
+ """Add an agent to an additional population."""
240
+ raw_response = await self._request(
241
+ "POST", f"agents/{str(agent_id)}/populations/{str(population_id)}"
242
+ )
243
+ return raw_response.json()
244
+
245
+ async def remove_agent_from_population(
246
+ self, agent_id: Union[str, uuid.UUID], population_id: Union[str, uuid.UUID]
247
+ ) -> Dict[str, str]:
248
+ """Remove an agent from a population."""
249
+ raw_response = await self._request(
250
+ "DELETE", f"agents/{str(agent_id)}/populations/{str(population_id)}"
251
+ )
252
+ return raw_response.json()
253
+
254
+ async def get_populations_for_agent(
255
+ self, agent_id: Union[str, uuid.UUID]
256
+ ) -> Dict[str, Any]:
257
+ """Get all populations an agent belongs to."""
258
+ raw_response = await self._request("GET", f"agents/{str(agent_id)}/populations")
259
+ return raw_response.json()
260
+
236
261
  async def create_data_item(
237
262
  self, agent_id: Union[str, uuid.UUID], data_type: str, content: Any, metadata: Optional[Dict[str, Any]] = None
238
263
  ) -> DataItem:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: simile
3
- Version: 0.3.5
3
+ Version: 0.3.6
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes