mixpeek 0.15.0__py3-none-any.whl → 0.15.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.
- mixpeek/_version.py +1 -1
- mixpeek/assets.py +8 -8
- mixpeek/collections.py +4 -4
- mixpeek/featureextractors.py +6 -6
- mixpeek/features.py +20 -20
- mixpeek/ingest.py +12 -54
- mixpeek/models/__init__.py +27 -108
- mixpeek/models/assetresponse.py +4 -4
- mixpeek/models/availableindexesresponse.py +2 -2
- mixpeek/models/availablemodels.py +4 -0
- mixpeek/models/createnamespacerequest.py +4 -4
- mixpeek/models/embeddingrequest.py +2 -2
- mixpeek/models/entitysettings.py +50 -0
- mixpeek/models/featureextractionembeddingrequest.py +2 -2
- mixpeek/models/imagedescribesettings.py +6 -6
- mixpeek/models/imagereadsettings.py +6 -6
- mixpeek/models/imagesettings.py +17 -4
- mixpeek/models/listassetsrequest.py +3 -3
- mixpeek/models/listfeaturesrequest.py +3 -3
- mixpeek/models/{logicaloperator_input.py → logicaloperator.py} +8 -8
- mixpeek/models/namespaceresponse.py +2 -2
- mixpeek/models/processimageurlinput.py +1 -13
- mixpeek/models/processtextinput.py +1 -13
- mixpeek/models/processvideourlinput.py +1 -13
- mixpeek/models/search_features_features_search_postop.py +4 -7
- mixpeek/models/{search_model_searchquery_input.py → search_model_searchquery.py} +7 -7
- mixpeek/models/searchassetsrequest.py +3 -3
- mixpeek/models/{searchrequestfeatures_output.py → searchrequestfeatures.py} +11 -11
- mixpeek/models/{percolaterequest.py → taskresponse.py} +15 -17
- mixpeek/models/taskstatus.py +1 -0
- mixpeek/models/taxonomyextractionconfig.py +31 -0
- mixpeek/models/textsettings.py +10 -4
- mixpeek/models/vectormodel.py +4 -0
- mixpeek/models/videodescribesettings.py +6 -6
- mixpeek/models/videoreadsettings.py +6 -6
- mixpeek/models/videosettings.py +17 -3
- mixpeek/models/videotranscriptionsettings.py +6 -6
- mixpeek/namespaces.py +10 -10
- mixpeek/sdk.py +0 -6
- mixpeek/sdkconfiguration.py +2 -2
- mixpeek/tasks.py +4 -4
- {mixpeek-0.15.0.dist-info → mixpeek-0.15.2.dist-info}/METADATA +1 -11
- {mixpeek-0.15.0.dist-info → mixpeek-0.15.2.dist-info}/RECORD +44 -56
- mixpeek/interactions.py +0 -228
- mixpeek/models/create_interaction_features_search_interactions_postop.py +0 -59
- mixpeek/models/db_model_taskresponse.py +0 -20
- mixpeek/models/delete_interaction_features_search_interactions_interaction_id_deleteop.py +0 -59
- mixpeek/models/get_interaction_features_search_interactions_interaction_id_getop.py +0 -59
- mixpeek/models/interactionresponse.py +0 -87
- mixpeek/models/interactiontype.py +0 -11
- mixpeek/models/list_interactions_features_search_interactions_getop.py +0 -96
- mixpeek/models/logicaloperator_output.py +0 -103
- mixpeek/models/searchinteraction.py +0 -82
- mixpeek/models/searchquery_output.py +0 -79
- mixpeek/models/searchrequestfeatures_input.py +0 -151
- mixpeek/models/tasks_model_taskresponse.py +0 -24
- mixpeek/searchinteractions.py +0 -666
- {mixpeek-0.15.0.dist-info → mixpeek-0.15.2.dist-info}/WHEEL +0 -0
@@ -1,103 +0,0 @@
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
from .filtercondition import FilterCondition, FilterConditionTypedDict
|
5
|
-
from mixpeek.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
|
6
|
-
import pydantic
|
7
|
-
from pydantic import model_serializer
|
8
|
-
from typing import List, Union
|
9
|
-
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
10
|
-
|
11
|
-
|
12
|
-
class LogicalOperatorOutputTypedDict(TypedDict):
|
13
|
-
case_sensitive: NotRequired[Nullable[bool]]
|
14
|
-
r"""Whether to perform case-sensitive matching"""
|
15
|
-
and_: NotRequired[Nullable[List[LogicalOperatorOutputANDTypedDict]]]
|
16
|
-
r"""Logical AND operation"""
|
17
|
-
or_: NotRequired[Nullable[List[LogicalOperatorOutputORTypedDict]]]
|
18
|
-
r"""Logical OR operation"""
|
19
|
-
nor: NotRequired[Nullable[List[LogicalOperatorOutputNORTypedDict]]]
|
20
|
-
r"""Logical NOR operation"""
|
21
|
-
|
22
|
-
|
23
|
-
class LogicalOperatorOutput(BaseModel):
|
24
|
-
case_sensitive: OptionalNullable[bool] = UNSET
|
25
|
-
r"""Whether to perform case-sensitive matching"""
|
26
|
-
|
27
|
-
and_: Annotated[
|
28
|
-
OptionalNullable[List[LogicalOperatorOutputAND]], pydantic.Field(alias="AND")
|
29
|
-
] = UNSET
|
30
|
-
r"""Logical AND operation"""
|
31
|
-
|
32
|
-
or_: Annotated[
|
33
|
-
OptionalNullable[List[LogicalOperatorOutputOR]], pydantic.Field(alias="OR")
|
34
|
-
] = UNSET
|
35
|
-
r"""Logical OR operation"""
|
36
|
-
|
37
|
-
nor: Annotated[
|
38
|
-
OptionalNullable[List[LogicalOperatorOutputNOR]], pydantic.Field(alias="NOR")
|
39
|
-
] = UNSET
|
40
|
-
r"""Logical NOR operation"""
|
41
|
-
|
42
|
-
@model_serializer(mode="wrap")
|
43
|
-
def serialize_model(self, handler):
|
44
|
-
optional_fields = ["case_sensitive", "AND", "OR", "NOR"]
|
45
|
-
nullable_fields = ["case_sensitive", "AND", "OR", "NOR"]
|
46
|
-
null_default_fields = []
|
47
|
-
|
48
|
-
serialized = handler(self)
|
49
|
-
|
50
|
-
m = {}
|
51
|
-
|
52
|
-
for n, f in self.model_fields.items():
|
53
|
-
k = f.alias or n
|
54
|
-
val = serialized.get(k)
|
55
|
-
serialized.pop(k, None)
|
56
|
-
|
57
|
-
optional_nullable = k in optional_fields and k in nullable_fields
|
58
|
-
is_set = (
|
59
|
-
self.__pydantic_fields_set__.intersection({n})
|
60
|
-
or k in null_default_fields
|
61
|
-
) # pylint: disable=no-member
|
62
|
-
|
63
|
-
if val is not None and val != UNSET_SENTINEL:
|
64
|
-
m[k] = val
|
65
|
-
elif val != UNSET_SENTINEL and (
|
66
|
-
not k in optional_fields or (optional_nullable and is_set)
|
67
|
-
):
|
68
|
-
m[k] = val
|
69
|
-
|
70
|
-
return m
|
71
|
-
|
72
|
-
|
73
|
-
LogicalOperatorOutputANDTypedDict = TypeAliasType(
|
74
|
-
"LogicalOperatorOutputANDTypedDict",
|
75
|
-
Union[FilterConditionTypedDict, LogicalOperatorOutputTypedDict],
|
76
|
-
)
|
77
|
-
|
78
|
-
|
79
|
-
LogicalOperatorOutputAND = TypeAliasType(
|
80
|
-
"LogicalOperatorOutputAND", Union[FilterCondition, LogicalOperatorOutput]
|
81
|
-
)
|
82
|
-
|
83
|
-
|
84
|
-
LogicalOperatorOutputORTypedDict = TypeAliasType(
|
85
|
-
"LogicalOperatorOutputORTypedDict",
|
86
|
-
Union[FilterConditionTypedDict, LogicalOperatorOutputTypedDict],
|
87
|
-
)
|
88
|
-
|
89
|
-
|
90
|
-
LogicalOperatorOutputOR = TypeAliasType(
|
91
|
-
"LogicalOperatorOutputOR", Union[FilterCondition, LogicalOperatorOutput]
|
92
|
-
)
|
93
|
-
|
94
|
-
|
95
|
-
LogicalOperatorOutputNORTypedDict = TypeAliasType(
|
96
|
-
"LogicalOperatorOutputNORTypedDict",
|
97
|
-
Union[FilterConditionTypedDict, LogicalOperatorOutputTypedDict],
|
98
|
-
)
|
99
|
-
|
100
|
-
|
101
|
-
LogicalOperatorOutputNOR = TypeAliasType(
|
102
|
-
"LogicalOperatorOutputNOR", Union[FilterCondition, LogicalOperatorOutput]
|
103
|
-
)
|
@@ -1,82 +0,0 @@
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
from .interactiontype import InteractionType
|
5
|
-
from .searchrequestfeatures_input import (
|
6
|
-
SearchRequestFeaturesInput,
|
7
|
-
SearchRequestFeaturesInputTypedDict,
|
8
|
-
)
|
9
|
-
from mixpeek.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
|
10
|
-
from pydantic import model_serializer
|
11
|
-
from typing_extensions import NotRequired, TypedDict
|
12
|
-
|
13
|
-
|
14
|
-
class MetadataTypedDict(TypedDict):
|
15
|
-
pass
|
16
|
-
|
17
|
-
|
18
|
-
class Metadata(BaseModel):
|
19
|
-
pass
|
20
|
-
|
21
|
-
|
22
|
-
class SearchInteractionTypedDict(TypedDict):
|
23
|
-
feature_id: str
|
24
|
-
r"""ID of the item that was interacted with"""
|
25
|
-
interaction_type: InteractionType
|
26
|
-
search_request: NotRequired[Nullable[SearchRequestFeaturesInputTypedDict]]
|
27
|
-
r"""The search request that led to this interaction"""
|
28
|
-
position: NotRequired[Nullable[int]]
|
29
|
-
r"""Position in search results where interaction occurred"""
|
30
|
-
metadata: NotRequired[Nullable[MetadataTypedDict]]
|
31
|
-
r"""Additional context about the interaction"""
|
32
|
-
session_id: NotRequired[Nullable[str]]
|
33
|
-
r"""Search session identifier"""
|
34
|
-
|
35
|
-
|
36
|
-
class SearchInteraction(BaseModel):
|
37
|
-
feature_id: str
|
38
|
-
r"""ID of the item that was interacted with"""
|
39
|
-
|
40
|
-
interaction_type: InteractionType
|
41
|
-
|
42
|
-
search_request: OptionalNullable[SearchRequestFeaturesInput] = UNSET
|
43
|
-
r"""The search request that led to this interaction"""
|
44
|
-
|
45
|
-
position: OptionalNullable[int] = UNSET
|
46
|
-
r"""Position in search results where interaction occurred"""
|
47
|
-
|
48
|
-
metadata: OptionalNullable[Metadata] = UNSET
|
49
|
-
r"""Additional context about the interaction"""
|
50
|
-
|
51
|
-
session_id: OptionalNullable[str] = UNSET
|
52
|
-
r"""Search session identifier"""
|
53
|
-
|
54
|
-
@model_serializer(mode="wrap")
|
55
|
-
def serialize_model(self, handler):
|
56
|
-
optional_fields = ["search_request", "position", "metadata", "session_id"]
|
57
|
-
nullable_fields = ["search_request", "position", "metadata", "session_id"]
|
58
|
-
null_default_fields = []
|
59
|
-
|
60
|
-
serialized = handler(self)
|
61
|
-
|
62
|
-
m = {}
|
63
|
-
|
64
|
-
for n, f in self.model_fields.items():
|
65
|
-
k = f.alias or n
|
66
|
-
val = serialized.get(k)
|
67
|
-
serialized.pop(k, None)
|
68
|
-
|
69
|
-
optional_nullable = k in optional_fields and k in nullable_fields
|
70
|
-
is_set = (
|
71
|
-
self.__pydantic_fields_set__.intersection({n})
|
72
|
-
or k in null_default_fields
|
73
|
-
) # pylint: disable=no-member
|
74
|
-
|
75
|
-
if val is not None and val != UNSET_SENTINEL:
|
76
|
-
m[k] = val
|
77
|
-
elif val != UNSET_SENTINEL and (
|
78
|
-
not k in optional_fields or (optional_nullable and is_set)
|
79
|
-
):
|
80
|
-
m[k] = val
|
81
|
-
|
82
|
-
return m
|
@@ -1,79 +0,0 @@
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
from .availablemodels import AvailableModels
|
5
|
-
from .logicaloperator_output import (
|
6
|
-
LogicalOperatorOutput,
|
7
|
-
LogicalOperatorOutputTypedDict,
|
8
|
-
)
|
9
|
-
from .querysettings import QuerySettings, QuerySettingsTypedDict
|
10
|
-
from enum import Enum
|
11
|
-
from mixpeek.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
|
12
|
-
from pydantic import model_serializer
|
13
|
-
from typing_extensions import NotRequired, TypedDict
|
14
|
-
|
15
|
-
|
16
|
-
class SearchQueryOutputType(str, Enum):
|
17
|
-
r"""Type of input (text, url, or base64)"""
|
18
|
-
|
19
|
-
TEXT = "text"
|
20
|
-
URL = "url"
|
21
|
-
BASE64 = "base64"
|
22
|
-
|
23
|
-
|
24
|
-
class SearchQueryOutputTypedDict(TypedDict):
|
25
|
-
vector_index: AvailableModels
|
26
|
-
value: str
|
27
|
-
r"""Query value - can be text, URL, or base64 encoded image"""
|
28
|
-
type: SearchQueryOutputType
|
29
|
-
r"""Type of input (text, url, or base64)"""
|
30
|
-
filters: NotRequired[Nullable[LogicalOperatorOutputTypedDict]]
|
31
|
-
r"""Optional filters for the query, this is used for filtering individual vector indexes"""
|
32
|
-
settings: NotRequired[Nullable[QuerySettingsTypedDict]]
|
33
|
-
r"""Optional settings for this specific query"""
|
34
|
-
|
35
|
-
|
36
|
-
class SearchQueryOutput(BaseModel):
|
37
|
-
vector_index: AvailableModels
|
38
|
-
|
39
|
-
value: str
|
40
|
-
r"""Query value - can be text, URL, or base64 encoded image"""
|
41
|
-
|
42
|
-
type: SearchQueryOutputType
|
43
|
-
r"""Type of input (text, url, or base64)"""
|
44
|
-
|
45
|
-
filters: OptionalNullable[LogicalOperatorOutput] = UNSET
|
46
|
-
r"""Optional filters for the query, this is used for filtering individual vector indexes"""
|
47
|
-
|
48
|
-
settings: OptionalNullable[QuerySettings] = UNSET
|
49
|
-
r"""Optional settings for this specific query"""
|
50
|
-
|
51
|
-
@model_serializer(mode="wrap")
|
52
|
-
def serialize_model(self, handler):
|
53
|
-
optional_fields = ["filters", "settings"]
|
54
|
-
nullable_fields = ["filters", "settings"]
|
55
|
-
null_default_fields = []
|
56
|
-
|
57
|
-
serialized = handler(self)
|
58
|
-
|
59
|
-
m = {}
|
60
|
-
|
61
|
-
for n, f in self.model_fields.items():
|
62
|
-
k = f.alias or n
|
63
|
-
val = serialized.get(k)
|
64
|
-
serialized.pop(k, None)
|
65
|
-
|
66
|
-
optional_nullable = k in optional_fields and k in nullable_fields
|
67
|
-
is_set = (
|
68
|
-
self.__pydantic_fields_set__.intersection({n})
|
69
|
-
or k in null_default_fields
|
70
|
-
) # pylint: disable=no-member
|
71
|
-
|
72
|
-
if val is not None and val != UNSET_SENTINEL:
|
73
|
-
m[k] = val
|
74
|
-
elif val != UNSET_SENTINEL and (
|
75
|
-
not k in optional_fields or (optional_nullable and is_set)
|
76
|
-
):
|
77
|
-
m[k] = val
|
78
|
-
|
79
|
-
return m
|
@@ -1,151 +0,0 @@
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
from .groupbyoptions import GroupByOptions, GroupByOptionsTypedDict
|
5
|
-
from .logicaloperator_input import LogicalOperatorInput, LogicalOperatorInputTypedDict
|
6
|
-
from .rerankingoptions import RerankingOptions, RerankingOptionsTypedDict
|
7
|
-
from .search_model_searchquery_input import (
|
8
|
-
SearchModelSearchQueryInput,
|
9
|
-
SearchModelSearchQueryInputTypedDict,
|
10
|
-
)
|
11
|
-
from .sortoption import SortOption, SortOptionTypedDict
|
12
|
-
from mixpeek.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
|
13
|
-
from pydantic import model_serializer
|
14
|
-
from typing import List
|
15
|
-
from typing_extensions import NotRequired, TypedDict
|
16
|
-
|
17
|
-
|
18
|
-
class SearchRequestFeaturesInputTypedDict(TypedDict):
|
19
|
-
queries: List[SearchModelSearchQueryInputTypedDict]
|
20
|
-
r"""List of search queries to perform.
|
21
|
-
|
22
|
-
Behavior:
|
23
|
-
- Single query: Results are returned directly from that query
|
24
|
-
- Multiple queries: Results are combined using Reciprocal Rank Fusion (RRF)
|
25
|
-
|
26
|
-
RRF combines results from multiple queries by:
|
27
|
-
1. Taking each item's rank position in each result list
|
28
|
-
2. Re-ranking all items by their combined RRF scores
|
29
|
-
|
30
|
-
When merging lists from different sources,
|
31
|
-
RRF considers all items that appear in any of the input lists,
|
32
|
-
not just items that appear in all lists.
|
33
|
-
|
34
|
-
This helps surface items that rank well across multiple queries while
|
35
|
-
reducing the impact of outlier high rankings in single queries.
|
36
|
-
|
37
|
-
NOTE: If query array is empty, it will return all features.
|
38
|
-
|
39
|
-
|
40
|
-
"""
|
41
|
-
collections: List[str]
|
42
|
-
r"""List of Collection names to search within, required"""
|
43
|
-
filters: NotRequired[Nullable[LogicalOperatorInputTypedDict]]
|
44
|
-
r"""Used for filtering across all indexes"""
|
45
|
-
group_by: NotRequired[Nullable[GroupByOptionsTypedDict]]
|
46
|
-
r"""Grouping options for search results"""
|
47
|
-
sort: NotRequired[Nullable[SortOptionTypedDict]]
|
48
|
-
r"""List of fields to sort by, with direction (asc or desc). Supports dot notation for nested fields."""
|
49
|
-
select: NotRequired[Nullable[List[str]]]
|
50
|
-
r"""List of fields to return in results, supports dot notation. If None, all fields are returned."""
|
51
|
-
reranking_options: NotRequired[Nullable[RerankingOptionsTypedDict]]
|
52
|
-
r"""Options for ranking the search results, including weights and feedback application"""
|
53
|
-
session_id: NotRequired[Nullable[str]]
|
54
|
-
r"""Identifier for tracking search session interactions"""
|
55
|
-
return_url: NotRequired[Nullable[bool]]
|
56
|
-
r"""Return the presigned URL for the asset and preview asset, this will introduce additional latency"""
|
57
|
-
|
58
|
-
|
59
|
-
class SearchRequestFeaturesInput(BaseModel):
|
60
|
-
queries: List[SearchModelSearchQueryInput]
|
61
|
-
r"""List of search queries to perform.
|
62
|
-
|
63
|
-
Behavior:
|
64
|
-
- Single query: Results are returned directly from that query
|
65
|
-
- Multiple queries: Results are combined using Reciprocal Rank Fusion (RRF)
|
66
|
-
|
67
|
-
RRF combines results from multiple queries by:
|
68
|
-
1. Taking each item's rank position in each result list
|
69
|
-
2. Re-ranking all items by their combined RRF scores
|
70
|
-
|
71
|
-
When merging lists from different sources,
|
72
|
-
RRF considers all items that appear in any of the input lists,
|
73
|
-
not just items that appear in all lists.
|
74
|
-
|
75
|
-
This helps surface items that rank well across multiple queries while
|
76
|
-
reducing the impact of outlier high rankings in single queries.
|
77
|
-
|
78
|
-
NOTE: If query array is empty, it will return all features.
|
79
|
-
|
80
|
-
|
81
|
-
"""
|
82
|
-
|
83
|
-
collections: List[str]
|
84
|
-
r"""List of Collection names to search within, required"""
|
85
|
-
|
86
|
-
filters: OptionalNullable[LogicalOperatorInput] = UNSET
|
87
|
-
r"""Used for filtering across all indexes"""
|
88
|
-
|
89
|
-
group_by: OptionalNullable[GroupByOptions] = UNSET
|
90
|
-
r"""Grouping options for search results"""
|
91
|
-
|
92
|
-
sort: OptionalNullable[SortOption] = UNSET
|
93
|
-
r"""List of fields to sort by, with direction (asc or desc). Supports dot notation for nested fields."""
|
94
|
-
|
95
|
-
select: OptionalNullable[List[str]] = UNSET
|
96
|
-
r"""List of fields to return in results, supports dot notation. If None, all fields are returned."""
|
97
|
-
|
98
|
-
reranking_options: OptionalNullable[RerankingOptions] = UNSET
|
99
|
-
r"""Options for ranking the search results, including weights and feedback application"""
|
100
|
-
|
101
|
-
session_id: OptionalNullable[str] = UNSET
|
102
|
-
r"""Identifier for tracking search session interactions"""
|
103
|
-
|
104
|
-
return_url: OptionalNullable[bool] = UNSET
|
105
|
-
r"""Return the presigned URL for the asset and preview asset, this will introduce additional latency"""
|
106
|
-
|
107
|
-
@model_serializer(mode="wrap")
|
108
|
-
def serialize_model(self, handler):
|
109
|
-
optional_fields = [
|
110
|
-
"filters",
|
111
|
-
"group_by",
|
112
|
-
"sort",
|
113
|
-
"select",
|
114
|
-
"reranking_options",
|
115
|
-
"session_id",
|
116
|
-
"return_url",
|
117
|
-
]
|
118
|
-
nullable_fields = [
|
119
|
-
"filters",
|
120
|
-
"group_by",
|
121
|
-
"sort",
|
122
|
-
"select",
|
123
|
-
"reranking_options",
|
124
|
-
"session_id",
|
125
|
-
"return_url",
|
126
|
-
]
|
127
|
-
null_default_fields = []
|
128
|
-
|
129
|
-
serialized = handler(self)
|
130
|
-
|
131
|
-
m = {}
|
132
|
-
|
133
|
-
for n, f in self.model_fields.items():
|
134
|
-
k = f.alias or n
|
135
|
-
val = serialized.get(k)
|
136
|
-
serialized.pop(k, None)
|
137
|
-
|
138
|
-
optional_nullable = k in optional_fields and k in nullable_fields
|
139
|
-
is_set = (
|
140
|
-
self.__pydantic_fields_set__.intersection({n})
|
141
|
-
or k in null_default_fields
|
142
|
-
) # pylint: disable=no-member
|
143
|
-
|
144
|
-
if val is not None and val != UNSET_SENTINEL:
|
145
|
-
m[k] = val
|
146
|
-
elif val != UNSET_SENTINEL and (
|
147
|
-
not k in optional_fields or (optional_nullable and is_set)
|
148
|
-
):
|
149
|
-
m[k] = val
|
150
|
-
|
151
|
-
return m
|
@@ -1,24 +0,0 @@
|
|
1
|
-
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
from .taskstatus import TaskStatus
|
5
|
-
from mixpeek.types import BaseModel
|
6
|
-
from typing import Any, List
|
7
|
-
from typing_extensions import TypedDict
|
8
|
-
|
9
|
-
|
10
|
-
class TasksModelTaskResponseTypedDict(TypedDict):
|
11
|
-
task_id: str
|
12
|
-
status: TaskStatus
|
13
|
-
inputs: List[Any]
|
14
|
-
outputs: List[Any]
|
15
|
-
|
16
|
-
|
17
|
-
class TasksModelTaskResponse(BaseModel):
|
18
|
-
task_id: str
|
19
|
-
|
20
|
-
status: TaskStatus
|
21
|
-
|
22
|
-
inputs: List[Any]
|
23
|
-
|
24
|
-
outputs: List[Any]
|