isaacus 0.1.0a1__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,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "isaacus"
4
- __version__ = "0.1.0-alpha.1" # x-release-please-version
4
+ __version__ = "0.1.2" # x-release-please-version
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: isaacus
3
- Version: 0.1.0a1
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
@@ -48,7 +48,7 @@ The REST API documentation can be found on [docs.isaacus.com](https://docs.isaac
48
48
 
49
49
  ```sh
50
50
  # install from PyPI
51
- pip install --pre isaacus
51
+ pip install isaacus
52
52
  ```
53
53
 
54
54
  ## Usage
@@ -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=QJjcy70nF84gGyzXyErqJ9w4IC1WkeWzmFJHMM8KL9g,167
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.0a1.dist-info/METADATA,sha256=BrXtIEjg_sRIui0LI11CTyHLcV4EA14yF6qhVvIhlB8,13802
35
- isaacus-0.1.0a1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
36
- isaacus-0.1.0a1.dist-info/licenses/LICENSE,sha256=lUen4LYVFVGEVXBsntBAPsQsOWgMkno1e9WfgWkpZ-k,11337
37
- isaacus-0.1.0a1.dist-info/RECORD,,
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,,