simile 0.4.4__py3-none-any.whl → 0.4.6__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 +7 -1
- simile/models.py +4 -0
- {simile-0.4.4.dist-info → simile-0.4.6.dist-info}/METADATA +1 -1
- simile-0.4.6.dist-info/RECORD +11 -0
- simile-0.4.4.dist-info/RECORD +0 -11
- {simile-0.4.4.dist-info → simile-0.4.6.dist-info}/WHEEL +0 -0
- {simile-0.4.4.dist-info → simile-0.4.6.dist-info}/licenses/LICENSE +0 -0
- {simile-0.4.4.dist-info → simile-0.4.6.dist-info}/top_level.txt +0 -0
simile/client.py
CHANGED
|
@@ -230,6 +230,8 @@ class Simile:
|
|
|
230
230
|
async def create_agent(
|
|
231
231
|
self,
|
|
232
232
|
name: str,
|
|
233
|
+
source: Optional[str] = None,
|
|
234
|
+
source_id: Optional[str] = None,
|
|
233
235
|
population_id: Optional[Union[str, uuid.UUID]] = None,
|
|
234
236
|
agent_data: Optional[List[Dict[str, Any]]] = None,
|
|
235
237
|
) -> AgentModel:
|
|
@@ -243,7 +245,11 @@ class Simile:
|
|
|
243
245
|
)
|
|
244
246
|
|
|
245
247
|
payload = CreateAgentPayload(
|
|
246
|
-
name=name,
|
|
248
|
+
name=name,
|
|
249
|
+
population_id=pop_id_uuid,
|
|
250
|
+
agent_data=agent_data,
|
|
251
|
+
source=source,
|
|
252
|
+
source_id=source_id,
|
|
247
253
|
)
|
|
248
254
|
response_data = await self._request(
|
|
249
255
|
"POST",
|
simile/models.py
CHANGED
|
@@ -39,6 +39,8 @@ class Agent(BaseModel):
|
|
|
39
39
|
created_at: datetime
|
|
40
40
|
updated_at: datetime
|
|
41
41
|
data_items: List[DataItem] = Field(default_factory=list)
|
|
42
|
+
source: Optional[str] = None
|
|
43
|
+
source_id: Optional[str] = None
|
|
42
44
|
|
|
43
45
|
|
|
44
46
|
class CreatePopulationPayload(BaseModel):
|
|
@@ -59,6 +61,8 @@ class InitialDataItemPayload(BaseModel):
|
|
|
59
61
|
|
|
60
62
|
class CreateAgentPayload(BaseModel):
|
|
61
63
|
name: str
|
|
64
|
+
source: Optional[str] = None
|
|
65
|
+
source_id: Optional[str] = None
|
|
62
66
|
population_id: Optional[uuid.UUID] = None
|
|
63
67
|
agent_data: Optional[List[InitialDataItemPayload]] = None
|
|
64
68
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
simile/__init__.py,sha256=JAYtieyGg6YYiCackJ6YNlGJkFWmhryzbwwVt4K67uI,1360
|
|
2
|
+
simile/auth_client.py,sha256=ICImmaA5fZX9ADbIPIUh4RED3hBZvLf3XSiaqELDAME,7923
|
|
3
|
+
simile/client.py,sha256=FweQYXw1Fs86ME-A6HJ139fJI-ldabqADvWNBqNH0Io,28134
|
|
4
|
+
simile/exceptions.py,sha256=Q1lbfwR7mEn_LYmwjAnsMc8BW79JNPvmCmVoPibYisU,1502
|
|
5
|
+
simile/models.py,sha256=qYXQ7KCKLsWf8TkbBlJUDU2kLZPZ69WIjX8DlavB_Bk,12316
|
|
6
|
+
simile/resources.py,sha256=LSYZSzx1YO69xvShGxxLFVPjQHw1WukHXhdYc1EyuOs,10555
|
|
7
|
+
simile-0.4.6.dist-info/licenses/LICENSE,sha256=tpxX3bpODfyOQVyEM6kCMvPHFCpkjFDj0AICRqKqOFA,1066
|
|
8
|
+
simile-0.4.6.dist-info/METADATA,sha256=JSOPoZEax9a15WOpA_XXvbavMWOkgqspWjwHGb4g8H4,1598
|
|
9
|
+
simile-0.4.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
10
|
+
simile-0.4.6.dist-info/top_level.txt,sha256=41lJneubAG4-ZOAs5qn7iDtDb-MDxa6DdvgBKwNX84M,7
|
|
11
|
+
simile-0.4.6.dist-info/RECORD,,
|
simile-0.4.4.dist-info/RECORD
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
simile/__init__.py,sha256=JAYtieyGg6YYiCackJ6YNlGJkFWmhryzbwwVt4K67uI,1360
|
|
2
|
-
simile/auth_client.py,sha256=ICImmaA5fZX9ADbIPIUh4RED3hBZvLf3XSiaqELDAME,7923
|
|
3
|
-
simile/client.py,sha256=Bbw2eOhThe1QiVx-JJlMwbV-PpUOet-8JpoJdyD8cPY,27970
|
|
4
|
-
simile/exceptions.py,sha256=Q1lbfwR7mEn_LYmwjAnsMc8BW79JNPvmCmVoPibYisU,1502
|
|
5
|
-
simile/models.py,sha256=LObPWI3NN-xBOHyGxfAyPgVDIJVGSp-hzd75S46q340,12178
|
|
6
|
-
simile/resources.py,sha256=LSYZSzx1YO69xvShGxxLFVPjQHw1WukHXhdYc1EyuOs,10555
|
|
7
|
-
simile-0.4.4.dist-info/licenses/LICENSE,sha256=tpxX3bpODfyOQVyEM6kCMvPHFCpkjFDj0AICRqKqOFA,1066
|
|
8
|
-
simile-0.4.4.dist-info/METADATA,sha256=C4WzP6KqogH9uMpIztTWuHvwAFZHszkJTetzgguIPq8,1598
|
|
9
|
-
simile-0.4.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
10
|
-
simile-0.4.4.dist-info/top_level.txt,sha256=41lJneubAG4-ZOAs5qn7iDtDb-MDxa6DdvgBKwNX84M,7
|
|
11
|
-
simile-0.4.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|