simile 0.3.2__py3-none-any.whl → 0.3.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/__init__.py CHANGED
@@ -1,13 +1,19 @@
1
1
  from .client import Simile
2
2
  from .auth_client import SimileAuth
3
3
  from .models import (
4
- Population, Agent, DataItem,
5
- CreatePopulationPayload, CreateAgentPayload, CreateDataItemPayload, UpdateDataItemPayload,
4
+ Population,
5
+ Agent,
6
+ DataItem,
7
+ PopulationInfo,
8
+ CreatePopulationPayload,
9
+ CreateAgentPayload,
10
+ CreateDataItemPayload,
11
+ UpdateDataItemPayload,
6
12
  DeletionResponse,
7
- OpenGenerationRequest,
8
- OpenGenerationResponse,
13
+ OpenGenerationRequest,
14
+ OpenGenerationResponse,
9
15
  ClosedGenerationRequest,
10
- ClosedGenerationResponse
16
+ ClosedGenerationResponse,
11
17
  )
12
18
  from .exceptions import (
13
19
  SimileAPIError,
@@ -19,12 +25,23 @@ from .exceptions import (
19
25
  __all__ = [
20
26
  "Simile",
21
27
  "SimileAuth",
22
- "Population", "Agent", "DataItem",
23
- "CreatePopulationPayload", "CreateAgentPayload", "CreateDataItemPayload", "UpdateDataItemPayload",
28
+ "Population",
29
+ "PopulationInfo",
30
+ "Agent",
31
+ "DataItem",
32
+ "CreatePopulationPayload",
33
+ "CreateAgentPayload",
34
+ "CreateDataItemPayload",
35
+ "UpdateDataItemPayload",
24
36
  "DeletionResponse",
25
- "OpenGenerationRequest", "OpenGenerationResponse",
26
- "ClosedGenerationRequest", "ClosedGenerationResponse",
27
- "SimileAPIError", "SimileAuthenticationError", "SimileNotFoundError", "SimileBadRequestError"
37
+ "OpenGenerationRequest",
38
+ "OpenGenerationResponse",
39
+ "ClosedGenerationRequest",
40
+ "ClosedGenerationResponse",
41
+ "SimileAPIError",
42
+ "SimileAuthenticationError",
43
+ "SimileNotFoundError",
44
+ "SimileBadRequestError",
28
45
  ]
29
46
 
30
47
  __version__ = "0.2.15"
simile/client.py CHANGED
@@ -6,6 +6,7 @@ from pydantic import BaseModel
6
6
 
7
7
  from .models import (
8
8
  Population,
9
+ PopulationInfo,
9
10
  Agent as AgentModel,
10
11
  DataItem,
11
12
  DeletionResponse,
@@ -168,6 +169,13 @@ class Simile:
168
169
  )
169
170
  return response_data
170
171
 
172
+ async def get_population_info(self, population_id: Union[str, uuid.UUID]) -> PopulationInfo:
173
+ """Gets basic population info (name and agent count) without full population data."""
174
+ response_data = await self._request(
175
+ "GET", f"populations/info/{str(population_id)}", response_model=PopulationInfo
176
+ )
177
+ return response_data
178
+
171
179
  async def delete_population(
172
180
  self, population_id: Union[str, uuid.UUID]
173
181
  ) -> DeletionResponse:
simile/models.py CHANGED
@@ -13,6 +13,13 @@ class Population(BaseModel):
13
13
  updated_at: datetime
14
14
 
15
15
 
16
+ class PopulationInfo(BaseModel):
17
+ population_id: uuid.UUID
18
+ name: str
19
+ description: Optional[str] = None
20
+ agent_count: int
21
+
22
+
16
23
  class DataItem(BaseModel):
17
24
  id: uuid.UUID
18
25
  agent_id: uuid.UUID
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: simile
3
- Version: 0.3.2
3
+ Version: 0.3.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,11 @@
1
+ simile/__init__.py,sha256=GgbhCv5G5F8X_DIYw0H72D8fRuVHW7SLezGJykALpd0,1036
2
+ simile/auth_client.py,sha256=ICImmaA5fZX9ADbIPIUh4RED3hBZvLf3XSiaqELDAME,7923
3
+ simile/client.py,sha256=Y-u8LH6peWoBJSEP8fva9pq5DkhYf5DpETwqcdg0ogg,12679
4
+ simile/exceptions.py,sha256=-rJ3KZcpvNRi9JXbDpxWDSL2lU1mEJX2piwYRZvhKmg,1406
5
+ simile/models.py,sha256=tqTgNWQjoHdSDffsAhiWyzf3wKgbiU137CtWr3pcFpg,5441
6
+ simile/resources.py,sha256=Juoa32SlN8LdvzCFaobq7uV2itmcwbk5dM_mlc4bCVk,10420
7
+ simile-0.3.4.dist-info/licenses/LICENSE,sha256=tpxX3bpODfyOQVyEM6kCMvPHFCpkjFDj0AICRqKqOFA,1066
8
+ simile-0.3.4.dist-info/METADATA,sha256=udSrz6PJqBo8ewtNnaGTzYWHcieaV6iB6VvH9FY102c,1276
9
+ simile-0.3.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
10
+ simile-0.3.4.dist-info/top_level.txt,sha256=41lJneubAG4-ZOAs5qn7iDtDb-MDxa6DdvgBKwNX84M,7
11
+ simile-0.3.4.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- simile/__init__.py,sha256=gElQY-o-_BSigva3w9zIX2KuCR49OM3MpL8sqeUpKzk,936
2
- simile/auth_client.py,sha256=ICImmaA5fZX9ADbIPIUh4RED3hBZvLf3XSiaqELDAME,7923
3
- simile/client.py,sha256=2ZCNzT1j-wZoT0SanLcdO0FPQN6gToksLL5hkBCcc9E,12292
4
- simile/exceptions.py,sha256=-rJ3KZcpvNRi9JXbDpxWDSL2lU1mEJX2piwYRZvhKmg,1406
5
- simile/models.py,sha256=SOAqUpxkiZduDBuMooTaOjiLX_3bBolWn7ivj8A-MgY,5304
6
- simile/resources.py,sha256=Juoa32SlN8LdvzCFaobq7uV2itmcwbk5dM_mlc4bCVk,10420
7
- simile-0.3.2.dist-info/licenses/LICENSE,sha256=tpxX3bpODfyOQVyEM6kCMvPHFCpkjFDj0AICRqKqOFA,1066
8
- simile-0.3.2.dist-info/METADATA,sha256=o-m8mOiHXeCCPzB7StUcPuPWNE9v-n2RG2mubGuu_5M,1276
9
- simile-0.3.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
10
- simile-0.3.2.dist-info/top_level.txt,sha256=41lJneubAG4-ZOAs5qn7iDtDb-MDxa6DdvgBKwNX84M,7
11
- simile-0.3.2.dist-info/RECORD,,
File without changes