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.
@@ -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
+ """