isaacus 0.1.1__py3-none-any.whl → 0.1.2__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.
isaacus/_version.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: isaacus
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.2
|
4
4
|
Summary: The official Python library for the isaacus API
|
5
5
|
Project-URL: Homepage, https://github.com/isaacus-dev/isaacus-python
|
6
6
|
Project-URL: Repository, https://github.com/isaacus-dev/isaacus-python
|
@@ -113,6 +113,28 @@ Nested request parameters are [TypedDicts](https://docs.python.org/3/library/typ
|
|
113
113
|
|
114
114
|
Typed requests and responses provide autocomplete and documentation within your editor. If you would like to see type errors in VS Code to help catch bugs earlier, set `python.analysis.typeCheckingMode` to `basic`.
|
115
115
|
|
116
|
+
## Nested params
|
117
|
+
|
118
|
+
Nested parameters are dictionaries, typed using `TypedDict`, for example:
|
119
|
+
|
120
|
+
```python
|
121
|
+
from isaacus import Isaacus
|
122
|
+
|
123
|
+
client = Isaacus()
|
124
|
+
|
125
|
+
universal_classification = client.classifications.universal.create(
|
126
|
+
model="kanon-universal-classifier",
|
127
|
+
query="This is a confidentiality clause.",
|
128
|
+
text="I agree not to tell anyone about the document.",
|
129
|
+
chunking_options={
|
130
|
+
"overlap_ratio": 0.1,
|
131
|
+
"overlap_tokens": 0,
|
132
|
+
"size": 512,
|
133
|
+
},
|
134
|
+
)
|
135
|
+
print(universal_classification.chunking_options)
|
136
|
+
```
|
137
|
+
|
116
138
|
## Handling errors
|
117
139
|
|
118
140
|
When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `isaacus.APIConnectionError` is raised.
|
@@ -11,7 +11,7 @@ isaacus/_resource.py,sha256=iP_oYhz5enCI58mK7hlwLoPMPh4Q5s8-KBv-jGfv2aM,1106
|
|
11
11
|
isaacus/_response.py,sha256=5v-mAgiP6X9EBGBvTYVdwuDjikiha-dc1dYmadIraCU,28795
|
12
12
|
isaacus/_streaming.py,sha256=tMBfwrfEFWm0v7vWFgjn_lizsoD70lPkYigIBuADaCM,10104
|
13
13
|
isaacus/_types.py,sha256=WCRAb8jikEJoOi8nza8l5NnOTKgZlpmN5fkiHoKoY08,6144
|
14
|
-
isaacus/_version.py,sha256=
|
14
|
+
isaacus/_version.py,sha256=axNkXDLg8rzW5hi6DSu09xj3y_V_--KTI_Y_0xOMfsk,159
|
15
15
|
isaacus/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
16
|
isaacus/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
17
17
|
isaacus/_utils/_logs.py,sha256=rwa1Yzjbs2JaFn9KQ06rH5c_GSNa--BVwWnWhvvT1tY,777
|
@@ -31,7 +31,7 @@ isaacus/types/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
|
|
31
31
|
isaacus/types/classifications/__init__.py,sha256=GX6WFRzjx9qcuJhdRZjFLJRYMM4d5J8F5N-BUq4ZgP0,296
|
32
32
|
isaacus/types/classifications/universal_classification.py,sha256=gyzkeQ5wII6w2CdbDrdMAFuRZSCJRRCIXecF-3h5OXQ,1544
|
33
33
|
isaacus/types/classifications/universal_create_params.py,sha256=w_d4mS2-Mys750436STGVCjIGiw9TYEGALJ3E6lH-Kw,2146
|
34
|
-
isaacus-0.1.
|
35
|
-
isaacus-0.1.
|
36
|
-
isaacus-0.1.
|
37
|
-
isaacus-0.1.
|
34
|
+
isaacus-0.1.2.dist-info/METADATA,sha256=VuGszQkCeARvkM3qDVpJm5Os-XzRpwEY_SkS-0gbJmA,14326
|
35
|
+
isaacus-0.1.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
36
|
+
isaacus-0.1.2.dist-info/licenses/LICENSE,sha256=lUen4LYVFVGEVXBsntBAPsQsOWgMkno1e9WfgWkpZ-k,11337
|
37
|
+
isaacus-0.1.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|