simile 0.3.3__py3-none-any.whl → 0.3.5__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 +27 -10
- simile/client.py +2 -2
- simile/models.py +1 -0
- {simile-0.3.3.dist-info → simile-0.3.5.dist-info}/METADATA +1 -1
- simile-0.3.5.dist-info/RECORD +11 -0
- simile-0.3.3.dist-info/RECORD +0 -11
- {simile-0.3.3.dist-info → simile-0.3.5.dist-info}/WHEEL +0 -0
- {simile-0.3.3.dist-info → simile-0.3.5.dist-info}/licenses/LICENSE +0 -0
- {simile-0.3.3.dist-info → simile-0.3.5.dist-info}/top_level.txt +0 -0
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,
|
|
5
|
-
|
|
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",
|
|
23
|
-
"
|
|
28
|
+
"Population",
|
|
29
|
+
"PopulationInfo",
|
|
30
|
+
"Agent",
|
|
31
|
+
"DataItem",
|
|
32
|
+
"CreatePopulationPayload",
|
|
33
|
+
"CreateAgentPayload",
|
|
34
|
+
"CreateDataItemPayload",
|
|
35
|
+
"UpdateDataItemPayload",
|
|
24
36
|
"DeletionResponse",
|
|
25
|
-
"OpenGenerationRequest",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
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
|
@@ -234,10 +234,10 @@ class Simile:
|
|
|
234
234
|
return response_data
|
|
235
235
|
|
|
236
236
|
async def create_data_item(
|
|
237
|
-
self, agent_id: Union[str, uuid.UUID], data_type: str, content: Any
|
|
237
|
+
self, agent_id: Union[str, uuid.UUID], data_type: str, content: Any, metadata: Optional[Dict[str, Any]] = None
|
|
238
238
|
) -> DataItem:
|
|
239
239
|
"""Creates a new data item for a specific agent."""
|
|
240
|
-
payload = CreateDataItemPayload(data_type=data_type, content=content)
|
|
240
|
+
payload = CreateDataItemPayload(data_type=data_type, content=content, metadata=metadata)
|
|
241
241
|
response_data = await self._request(
|
|
242
242
|
"POST",
|
|
243
243
|
f"data_item/create/{str(agent_id)}",
|
simile/models.py
CHANGED
|
@@ -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=7iXw7mF4SVWi8fm4VUnfkoRMFdi4qLm8S6ulWgvQLLA,12741
|
|
4
|
+
simile/exceptions.py,sha256=-rJ3KZcpvNRi9JXbDpxWDSL2lU1mEJX2piwYRZvhKmg,1406
|
|
5
|
+
simile/models.py,sha256=vbWrK5VKDPsiI9K4n2dCC41Y9who7cgTHSL9ARs25K0,5487
|
|
6
|
+
simile/resources.py,sha256=Juoa32SlN8LdvzCFaobq7uV2itmcwbk5dM_mlc4bCVk,10420
|
|
7
|
+
simile-0.3.5.dist-info/licenses/LICENSE,sha256=tpxX3bpODfyOQVyEM6kCMvPHFCpkjFDj0AICRqKqOFA,1066
|
|
8
|
+
simile-0.3.5.dist-info/METADATA,sha256=Dli_UkcMUpWx7C85L3cjFyqqbsmToT70CwXc2BqfcN8,1276
|
|
9
|
+
simile-0.3.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
10
|
+
simile-0.3.5.dist-info/top_level.txt,sha256=41lJneubAG4-ZOAs5qn7iDtDb-MDxa6DdvgBKwNX84M,7
|
|
11
|
+
simile-0.3.5.dist-info/RECORD,,
|
simile-0.3.3.dist-info/RECORD
DELETED
|
@@ -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=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.3.dist-info/licenses/LICENSE,sha256=tpxX3bpODfyOQVyEM6kCMvPHFCpkjFDj0AICRqKqOFA,1066
|
|
8
|
-
simile-0.3.3.dist-info/METADATA,sha256=FldEaAGi3LwkMt9SBv3UIxtpfCCqJJaJnFef8OskCyU,1276
|
|
9
|
-
simile-0.3.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
10
|
-
simile-0.3.3.dist-info/top_level.txt,sha256=41lJneubAG4-ZOAs5qn7iDtDb-MDxa6DdvgBKwNX84M,7
|
|
11
|
-
simile-0.3.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|