Skip to content

Commit 12b6674

Browse files
feat(sdk): make qa, universal, ilgs standalone apis
1 parent 948c291 commit 12b6674

File tree

16 files changed

+27
-51
lines changed

16 files changed

+27
-51
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 5
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/isaacus%2Fisaacus-a9cacf65cf152a5f4fdd8de8d28c979452c67c28a7e765075638b817d330d121.yml
33
openapi_spec_hash: 8343f878342e9d128695b85fecb93dc5
4-
config_hash: 7b8cddc2fa896f9ab05e6b05055c7f27
4+
config_hash: 9040e7359f066240ad536041fb2c5185

api.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ Methods:
1717
Types:
1818

1919
```python
20-
from isaacus.types.classifications import UniversalClassificationResponse
20+
from isaacus.types.classifications.universal import UniversalClassificationResponse
2121
```
2222

2323
Methods:
2424

25-
- <code title="post /classifications/universal">client.classifications.universal.<a href="./src/isaacus/resources/classifications/universal.py">create</a>(\*\*<a href="src/isaacus/types/classifications/universal_create_params.py">params</a>) -> <a href="./src/isaacus/types/classifications/universal_classification_response.py">UniversalClassificationResponse</a></code>
25+
- <code title="post /classifications/universal">client.classifications.universal.<a href="./src/isaacus/resources/classifications/universal.py">create</a>(\*\*<a href="src/isaacus/types/classifications/universal/universal_create_params.py">params</a>) -> <a href="./src/isaacus/types/classifications/universal/universal_classification_response.py">UniversalClassificationResponse</a></code>
2626

2727
# Rerankings
2828

@@ -43,12 +43,12 @@ Methods:
4343
Types:
4444

4545
```python
46-
from isaacus.types.extractions import AnswerExtractionResponse
46+
from isaacus.types.extractions.qa import AnswerExtractionResponse
4747
```
4848

4949
Methods:
5050

51-
- <code title="post /extractions/qa">client.extractions.qa.<a href="./src/isaacus/resources/extractions/qa.py">create</a>(\*\*<a href="src/isaacus/types/extractions/qa_create_params.py">params</a>) -> <a href="./src/isaacus/types/extractions/answer_extraction_response.py">AnswerExtractionResponse</a></code>
51+
- <code title="post /extractions/qa">client.extractions.qa.<a href="./src/isaacus/resources/extractions/qa.py">create</a>(\*\*<a href="src/isaacus/types/extractions/qa/qa_create_params.py">params</a>) -> <a href="./src/isaacus/types/extractions/qa/answer_extraction_response.py">AnswerExtractionResponse</a></code>
5252

5353
# Enrichments
5454

@@ -66,8 +66,6 @@ Methods:
6666

6767
## v1
6868

69-
### v1
70-
7169
Types:
7270

7371
```python

src/isaacus/resources/classifications/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from .universal import (
4-
UniversalResource,
5-
AsyncUniversalResource,
6-
UniversalResourceWithRawResponse,
7-
AsyncUniversalResourceWithRawResponse,
8-
UniversalResourceWithStreamingResponse,
9-
AsyncUniversalResourceWithStreamingResponse,
10-
)
113
from .classifications import (
124
ClassificationsResource,
135
AsyncClassificationsResource,
@@ -18,12 +10,6 @@
1810
)
1911

2012
__all__ = [
21-
"UniversalResource",
22-
"AsyncUniversalResource",
23-
"UniversalResourceWithRawResponse",
24-
"AsyncUniversalResourceWithRawResponse",
25-
"UniversalResourceWithStreamingResponse",
26-
"AsyncUniversalResourceWithStreamingResponse",
2713
"ClassificationsResource",
2814
"AsyncClassificationsResource",
2915
"ClassificationsResourceWithRawResponse",

src/isaacus/resources/classifications/universal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
async_to_streamed_response_wrapper,
1919
)
2020
from ..._base_client import make_request_options
21-
from ...types.classifications import universal_create_params
22-
from ...types.classifications.universal_classification_response import UniversalClassificationResponse
21+
from ...types.classifications.universal import universal_create_params
22+
from ...types.classifications.universal.universal_classification_response import UniversalClassificationResponse
2323

2424
__all__ = ["UniversalResource", "AsyncUniversalResource"]
2525

src/isaacus/resources/extractions/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from .qa import (
4-
QAResource,
5-
AsyncQAResource,
6-
QAResourceWithRawResponse,
7-
AsyncQAResourceWithRawResponse,
8-
QAResourceWithStreamingResponse,
9-
AsyncQAResourceWithStreamingResponse,
10-
)
113
from .extractions import (
124
ExtractionsResource,
135
AsyncExtractionsResource,
@@ -18,12 +10,6 @@
1810
)
1911

2012
__all__ = [
21-
"QAResource",
22-
"AsyncQAResource",
23-
"QAResourceWithRawResponse",
24-
"AsyncQAResourceWithRawResponse",
25-
"QAResourceWithStreamingResponse",
26-
"AsyncQAResourceWithStreamingResponse",
2713
"ExtractionsResource",
2814
"AsyncExtractionsResource",
2915
"ExtractionsResourceWithRawResponse",

src/isaacus/resources/extractions/qa.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
async_to_streamed_response_wrapper,
1919
)
2020
from ..._base_client import make_request_options
21-
from ...types.extractions import qa_create_params
22-
from ...types.extractions.answer_extraction_response import AnswerExtractionResponse
21+
from ...types.extractions.qa import qa_create_params
22+
from ...types.extractions.qa.answer_extraction_response import AnswerExtractionResponse
2323

2424
__all__ = ["QAResource", "AsyncQAResource"]
2525

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from __future__ import annotations
4-
5-
from .universal_create_params import UniversalCreateParams as UniversalCreateParams
6-
from .universal_classification_response import UniversalClassificationResponse as UniversalClassificationResponse
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from .universal_create_params import UniversalCreateParams as UniversalCreateParams
6+
from .universal_classification_response import UniversalClassificationResponse as UniversalClassificationResponse

src/isaacus/types/classifications/universal_classification_response.py renamed to src/isaacus/types/classifications/universal/universal_classification_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from typing import List, Optional
44

5-
from ..._models import BaseModel
5+
from ...._models import BaseModel
66

77
__all__ = ["UniversalClassificationResponse", "Classification", "ClassificationChunk", "Usage"]
88

src/isaacus/types/classifications/universal_create_params.py renamed to src/isaacus/types/classifications/universal/universal_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from typing import Optional
66
from typing_extensions import Literal, Required, TypedDict
77

8-
from ..._types import SequenceNotStr
8+
from ...._types import SequenceNotStr
99

1010
__all__ = ["UniversalCreateParams", "ChunkingOptions"]
1111

0 commit comments

Comments
 (0)