simile 0.3.10__tar.gz → 0.3.12__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.
- {simile-0.3.10 → simile-0.3.12}/PKG-INFO +16 -1
- simile-0.3.12/README.md +37 -0
- {simile-0.3.10 → simile-0.3.12}/pyproject.toml +1 -1
- {simile-0.3.10 → simile-0.3.12}/simile/client.py +5 -2
- {simile-0.3.10 → simile-0.3.12}/simile/models.py +3 -2
- {simile-0.3.10 → simile-0.3.12}/simile.egg-info/PKG-INFO +16 -1
- simile-0.3.10/README.md +0 -22
- {simile-0.3.10 → simile-0.3.12}/LICENSE +0 -0
- {simile-0.3.10 → simile-0.3.12}/setup.cfg +0 -0
- {simile-0.3.10 → simile-0.3.12}/setup.py +0 -0
- {simile-0.3.10 → simile-0.3.12}/simile/__init__.py +0 -0
- {simile-0.3.10 → simile-0.3.12}/simile/auth_client.py +0 -0
- {simile-0.3.10 → simile-0.3.12}/simile/exceptions.py +0 -0
- {simile-0.3.10 → simile-0.3.12}/simile/resources.py +0 -0
- {simile-0.3.10 → simile-0.3.12}/simile.egg-info/SOURCES.txt +0 -0
- {simile-0.3.10 → simile-0.3.12}/simile.egg-info/dependency_links.txt +0 -0
- {simile-0.3.10 → simile-0.3.12}/simile.egg-info/requires.txt +0 -0
- {simile-0.3.10 → simile-0.3.12}/simile.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: simile
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.12
|
|
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
|
|
@@ -46,3 +46,18 @@ from simile import Simile
|
|
|
46
46
|
|
|
47
47
|
client = Simile(api_key="your_api_key")
|
|
48
48
|
```
|
|
49
|
+
|
|
50
|
+
## Publishing
|
|
51
|
+
|
|
52
|
+
First, bump the version in `pyproject.toml`. Then, create the distribution files:
|
|
53
|
+
```bash
|
|
54
|
+
python3 -m build
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Afterwards, use [Twine](https://pypi.org/project/twine/) to upload the package:
|
|
58
|
+
```bash
|
|
59
|
+
pip install twine
|
|
60
|
+
twine upload dist/*
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
If you need the PyPI credentials, please ask Carolyn or Chris.
|
simile-0.3.12/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Simile API Python Client
|
|
2
|
+
|
|
3
|
+
A Python client for interacting with the Simile API server.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install simile
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Dependencies
|
|
12
|
+
|
|
13
|
+
- `httpx>=0.20.0`
|
|
14
|
+
- `pydantic>=2.0.0`
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
```python
|
|
19
|
+
from simile import Simile
|
|
20
|
+
|
|
21
|
+
client = Simile(api_key="your_api_key")
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Publishing
|
|
25
|
+
|
|
26
|
+
First, bump the version in `pyproject.toml`. Then, create the distribution files:
|
|
27
|
+
```bash
|
|
28
|
+
python3 -m build
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Afterwards, use [Twine](https://pypi.org/project/twine/) to upload the package:
|
|
32
|
+
```bash
|
|
33
|
+
pip install twine
|
|
34
|
+
twine upload dist/*
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
If you need the PyPI credentials, please ask Carolyn or Chris.
|
|
@@ -300,10 +300,13 @@ class Simile:
|
|
|
300
300
|
return [DataItem(**item) for item in raw_response.json()]
|
|
301
301
|
|
|
302
302
|
async def update_data_item(
|
|
303
|
-
self,
|
|
303
|
+
self,
|
|
304
|
+
data_item_id: Union[str, uuid.UUID],
|
|
305
|
+
content: Any,
|
|
306
|
+
metadata: Optional[Dict[str, Any]] = None,
|
|
304
307
|
) -> DataItem:
|
|
305
308
|
"""Updates an existing data item."""
|
|
306
|
-
payload = UpdateDataItemPayload(content=content)
|
|
309
|
+
payload = UpdateDataItemPayload(content=content, metadata=metadata)
|
|
307
310
|
response_data = await self._request(
|
|
308
311
|
"POST",
|
|
309
312
|
f"data_item/update/{str(data_item_id)}",
|
|
@@ -64,6 +64,7 @@ class CreateDataItemPayload(BaseModel):
|
|
|
64
64
|
|
|
65
65
|
class UpdateDataItemPayload(BaseModel):
|
|
66
66
|
content: Any
|
|
67
|
+
metadata: Optional[Dict[str, Any]] = None
|
|
67
68
|
|
|
68
69
|
|
|
69
70
|
class DeletionResponse(BaseModel):
|
|
@@ -84,7 +85,7 @@ class OpenGenerationRequest(BaseModel):
|
|
|
84
85
|
class OpenGenerationResponse(BaseModel):
|
|
85
86
|
question: str
|
|
86
87
|
answer: str
|
|
87
|
-
reasoning: str
|
|
88
|
+
reasoning: Optional[str] = ""
|
|
88
89
|
|
|
89
90
|
|
|
90
91
|
class ClosedGenerationRequest(BaseModel):
|
|
@@ -100,7 +101,7 @@ class ClosedGenerationResponse(BaseModel):
|
|
|
100
101
|
question: str
|
|
101
102
|
options: List[str]
|
|
102
103
|
response: str
|
|
103
|
-
reasoning: str
|
|
104
|
+
reasoning: Optional[str] = ""
|
|
104
105
|
|
|
105
106
|
|
|
106
107
|
class AddContextRequest(BaseModel):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: simile
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.12
|
|
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
|
|
@@ -46,3 +46,18 @@ from simile import Simile
|
|
|
46
46
|
|
|
47
47
|
client = Simile(api_key="your_api_key")
|
|
48
48
|
```
|
|
49
|
+
|
|
50
|
+
## Publishing
|
|
51
|
+
|
|
52
|
+
First, bump the version in `pyproject.toml`. Then, create the distribution files:
|
|
53
|
+
```bash
|
|
54
|
+
python3 -m build
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Afterwards, use [Twine](https://pypi.org/project/twine/) to upload the package:
|
|
58
|
+
```bash
|
|
59
|
+
pip install twine
|
|
60
|
+
twine upload dist/*
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
If you need the PyPI credentials, please ask Carolyn or Chris.
|
simile-0.3.10/README.md
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# Simile API Python Client
|
|
2
|
-
|
|
3
|
-
A Python client for interacting with the Simile API server.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
pip install simile
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Dependencies
|
|
12
|
-
|
|
13
|
-
- `httpx>=0.20.0`
|
|
14
|
-
- `pydantic>=2.0.0`
|
|
15
|
-
|
|
16
|
-
## Usage
|
|
17
|
-
|
|
18
|
-
```python
|
|
19
|
-
from simile import Simile
|
|
20
|
-
|
|
21
|
-
client = Simile(api_key="your_api_key")
|
|
22
|
-
```
|
|
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
|
|
File without changes
|
|
File without changes
|