Skip to content

Commit 411d83f

Browse files
feat(api): added latest OpenAPI specification (#29)
1 parent 946a5c7 commit 411d83f

File tree

4 files changed

+26
-18
lines changed

4 files changed

+26
-18
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-472ef5f1174bab055fd83756f45445b5c0f1f3f442c531dfc275ea895ec229a7.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-ec269bff43481aeb5c72d3074aa31815ef915d435e78bc62b0290437a7b2992a.yml

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ The REST API documentation can be found on [docs.isaacus.com](https://docs.isaac
1515
## Installation
1616

1717
```sh
18-
# install from PyPI
19-
pip install isaacus
18+
# install from the production repo
19+
pip install git+ssh://git@github.com/isaacus-dev/isaacus-python.git
2020
```
2121

22+
> [!NOTE]
23+
> Once this package is [published to PyPI](https://app.stainless.com/docs/guides/publish), this will become: `pip install isaacus`
24+
2225
## Usage
2326

2427
The full API of this library can be found in [api.md](api.md).

src/isaacus/resources/classifications/universal.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,11 @@ def create(
6868
legal AI classifier.
6969
7070
Args:
71-
model: The ID of the model to use for universal classification.
71+
model: The ID of the [model](https://docs.isaacus.com/models#universal-classification)
72+
to use for universal classification.
7273
73-
query: The Isaacus Query Language (IQL) query or, if IQL is disabled, the statement, to
74-
evaluate the text against.
74+
query: The [Isaacus Query Language (IQL)](https://docs.isaacus.com/iql) query or, if
75+
IQL is disabled, the statement, to evaluate the text against.
7576
7677
The query must contain at least one non-whitespace character.
7778
@@ -84,8 +85,8 @@ def create(
8485
8586
chunking_options: Options for how to split text into smaller chunks.
8687
87-
is_iql: Whether the query should be interpreted as an Isaacus Query Language (IQL) query
88-
or else as a statement.
88+
is_iql: Whether the query should be interpreted as an
89+
[IQL](https://docs.isaacus.com/iql) query or else as a statement.
8990
9091
scoring_method: The method to use for producing an overall confidence score.
9192
@@ -168,10 +169,11 @@ async def create(
168169
legal AI classifier.
169170
170171
Args:
171-
model: The ID of the model to use for universal classification.
172+
model: The ID of the [model](https://docs.isaacus.com/models#universal-classification)
173+
to use for universal classification.
172174
173-
query: The Isaacus Query Language (IQL) query or, if IQL is disabled, the statement, to
174-
evaluate the text against.
175+
query: The [Isaacus Query Language (IQL)](https://docs.isaacus.com/iql) query or, if
176+
IQL is disabled, the statement, to evaluate the text against.
175177
176178
The query must contain at least one non-whitespace character.
177179
@@ -184,8 +186,8 @@ async def create(
184186
185187
chunking_options: Options for how to split text into smaller chunks.
186188
187-
is_iql: Whether the query should be interpreted as an Isaacus Query Language (IQL) query
188-
or else as a statement.
189+
is_iql: Whether the query should be interpreted as an
190+
[IQL](https://docs.isaacus.com/iql) query or else as a statement.
189191
190192
scoring_method: The method to use for producing an overall confidence score.
191193

src/isaacus/types/classifications/universal_create_params.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@
1010

1111
class UniversalCreateParams(TypedDict, total=False):
1212
model: Required[Literal["kanon-universal-classifier", "kanon-universal-classifier-mini"]]
13-
"""The ID of the model to use for universal classification."""
13+
"""
14+
The ID of the [model](https://docs.isaacus.com/models#universal-classification)
15+
to use for universal classification.
16+
"""
1417

1518
query: Required[str]
1619
"""
17-
The Isaacus Query Language (IQL) query or, if IQL is disabled, the statement, to
18-
evaluate the text against.
20+
The [Isaacus Query Language (IQL)](https://docs.isaacus.com/iql) query or, if
21+
IQL is disabled, the statement, to evaluate the text against.
1922
2023
The query must contain at least one non-whitespace character.
2124
@@ -34,8 +37,8 @@ class UniversalCreateParams(TypedDict, total=False):
3437

3538
is_iql: bool
3639
"""
37-
Whether the query should be interpreted as an Isaacus Query Language (IQL) query
38-
or else as a statement.
40+
Whether the query should be interpreted as an
41+
[IQL](https://docs.isaacus.com/iql) query or else as a statement.
3942
"""
4043

4144
scoring_method: Literal["auto", "chunk_max", "chunk_avg", "chunk_min"]

0 commit comments

Comments
 (0)