isaacus 0.9.1__py3-none-any.whl → 0.10.1__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/_base_client.py +145 -13
- isaacus/_client.py +216 -46
- isaacus/_compat.py +3 -3
- isaacus/_models.py +53 -16
- isaacus/_streaming.py +12 -12
- isaacus/_types.py +12 -2
- isaacus/_utils/_json.py +35 -0
- isaacus/_utils/_sync.py +3 -31
- isaacus/_utils/_utils.py +1 -1
- isaacus/_version.py +1 -1
- isaacus/resources/__init__.py +14 -0
- isaacus/resources/enrichments.py +224 -0
- isaacus/resources/rerankings.py +2 -2
- isaacus/types/__init__.py +2 -0
- isaacus/types/classifications/universal_classification_response.py +2 -0
- isaacus/types/classifications/universal_create_params.py +3 -1
- isaacus/types/embedding_response.py +2 -0
- isaacus/types/enrichment_create_params.py +40 -0
- isaacus/types/enrichment_response.py +1458 -0
- isaacus/types/extractions/answer_extraction_response.py +8 -0
- isaacus/types/extractions/qa_create_params.py +3 -1
- isaacus/types/reranking_create_params.py +3 -1
- isaacus/types/reranking_response.py +2 -0
- {isaacus-0.9.1.dist-info → isaacus-0.10.1.dist-info}/METADATA +24 -6
- {isaacus-0.9.1.dist-info → isaacus-0.10.1.dist-info}/RECORD +27 -23
- {isaacus-0.9.1.dist-info → isaacus-0.10.1.dist-info}/licenses/LICENSE +1 -1
- {isaacus-0.9.1.dist-info → isaacus-0.10.1.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Union, Optional
|
|
6
|
+
from typing_extensions import Literal, Required, TypedDict
|
|
7
|
+
|
|
8
|
+
from .._types import SequenceNotStr
|
|
9
|
+
|
|
10
|
+
__all__ = ["EnrichmentCreateParams"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class EnrichmentCreateParams(TypedDict, total=False):
|
|
14
|
+
model: Required[Literal["kanon-2-enricher-preview"]]
|
|
15
|
+
"""
|
|
16
|
+
The ID of the [model](https://docs.isaacus.com/models#enrichment) to use for
|
|
17
|
+
enrichment.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
texts: Required[Union[SequenceNotStr[str], str]]
|
|
21
|
+
"""
|
|
22
|
+
A text or array of texts to be enriched, each containing at least one
|
|
23
|
+
non-whitespace character.
|
|
24
|
+
|
|
25
|
+
No more than 8 texts can be enriched in a single request.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
overflow_strategy: Optional[Literal["auto", "drop_end"]]
|
|
29
|
+
"""The strategy for handling content exceeding the model's maximum input length.
|
|
30
|
+
|
|
31
|
+
`auto` currently behaves the same as `drop_end`, dropping excess tokens from the
|
|
32
|
+
end of input. In the future, `auto` may implement more sophisticated strategies
|
|
33
|
+
such as chunking and context-aware stitching.
|
|
34
|
+
|
|
35
|
+
`drop_end` drops tokens from the end of input exceeding the model's maximum
|
|
36
|
+
input length.
|
|
37
|
+
|
|
38
|
+
`null`, which is the default setting, raises an error if the input exceeds the
|
|
39
|
+
model's maximum input length.
|
|
40
|
+
"""
|