orca-sdk 0.0.90__py3-none-any.whl → 0.0.92__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.
Files changed (29) hide show
  1. orca_sdk/_generated_api_client/api/__init__.py +12 -0
  2. orca_sdk/_generated_api_client/api/classification_model/predict_gpu_classification_model_name_or_id_prediction_post.py +12 -12
  3. orca_sdk/_generated_api_client/api/classification_model/update_model_classification_model_name_or_id_patch.py +183 -0
  4. orca_sdk/_generated_api_client/api/memoryset/batch_delete_memoryset_batch_delete_memoryset_post.py +168 -0
  5. orca_sdk/_generated_api_client/api/memoryset/update_memoryset_memoryset_name_or_id_patch.py +183 -0
  6. orca_sdk/_generated_api_client/models/__init__.py +8 -2
  7. orca_sdk/_generated_api_client/models/{label_prediction_result.py → base_label_prediction_result.py} +24 -9
  8. orca_sdk/_generated_api_client/models/delete_memorysets_request.py +70 -0
  9. orca_sdk/_generated_api_client/models/label_prediction_with_memories_and_feedback.py +8 -8
  10. orca_sdk/_generated_api_client/models/labeled_memoryset_metadata.py +8 -0
  11. orca_sdk/_generated_api_client/models/labeled_memoryset_update.py +113 -0
  12. orca_sdk/_generated_api_client/models/prediction_request.py +9 -0
  13. orca_sdk/_generated_api_client/models/rac_model_update.py +82 -0
  14. orca_sdk/_shared/__init__.py +1 -0
  15. orca_sdk/_shared/metrics.py +195 -0
  16. orca_sdk/_shared/metrics_test.py +169 -0
  17. orca_sdk/_utils/analysis_ui.py +1 -1
  18. orca_sdk/_utils/analysis_ui_style.css +0 -3
  19. orca_sdk/classification_model.py +191 -23
  20. orca_sdk/classification_model_test.py +75 -22
  21. orca_sdk/conftest.py +13 -1
  22. orca_sdk/embedding_model.py +2 -0
  23. orca_sdk/memoryset.py +13 -0
  24. orca_sdk/memoryset_test.py +27 -6
  25. orca_sdk/telemetry.py +13 -2
  26. orca_sdk/telemetry_test.py +6 -0
  27. {orca_sdk-0.0.90.dist-info → orca_sdk-0.0.92.dist-info}/METADATA +3 -1
  28. {orca_sdk-0.0.90.dist-info → orca_sdk-0.0.92.dist-info}/RECORD +29 -20
  29. {orca_sdk-0.0.90.dist-info → orca_sdk-0.0.92.dist-info}/WHEEL +0 -0
@@ -32,6 +32,9 @@ from .classification_model.list_models_classification_model_get import (
32
32
  from .classification_model.predict_gpu_classification_model_name_or_id_prediction_post import (
33
33
  sync as predict_gpu,
34
34
  )
35
+ from .classification_model.update_model_classification_model_name_or_id_patch import (
36
+ sync as update_model,
37
+ )
35
38
  from .datasource.create_datasource_datasource_post import sync as create_datasource
36
39
  from .datasource.create_embedding_evaluation_datasource_name_or_id_embedding_evaluation_post import (
37
40
  sync as create_embedding_evaluation,
@@ -67,6 +70,9 @@ from .finetuned_embedding_model.list_finetuned_embedding_models_finetuned_embedd
67
70
  from .memoryset.analyze_memoryset_memoryset_name_or_id_analysis_post import (
68
71
  sync as analyze_memoryset,
69
72
  )
73
+ from .memoryset.batch_delete_memoryset_batch_delete_memoryset_post import (
74
+ sync as batch_delete,
75
+ )
70
76
  from .memoryset.clone_memoryset_memoryset_name_or_id_clone_post import (
71
77
  sync as clone_memoryset,
72
78
  )
@@ -112,6 +118,9 @@ from .memoryset.update_memories_gpu_memoryset_name_or_id_memories_patch import (
112
118
  from .memoryset.update_memory_gpu_memoryset_name_or_id_memory_patch import (
113
119
  sync as update_memory_gpu,
114
120
  )
121
+ from .memoryset.update_memoryset_memoryset_name_or_id_patch import (
122
+ sync as update_memoryset,
123
+ )
115
124
  from .pretrained_embedding_model.embed_with_pretrained_model_gpu_pretrained_embedding_model_model_name_embedding_post import (
116
125
  sync as embed_with_pretrained_model_gpu,
117
126
  )
@@ -158,6 +167,7 @@ from .telemetry.update_prediction_telemetry_prediction_prediction_id_patch impor
158
167
  __all__ = [
159
168
  "abort_task",
160
169
  "analyze_memoryset",
170
+ "batch_delete",
161
171
  "check_authentication",
162
172
  "clone_memoryset",
163
173
  "count_predictions",
@@ -217,5 +227,7 @@ __all__ = [
217
227
  "record_prediction_feedback",
218
228
  "update_memories_gpu",
219
229
  "update_memory_gpu",
230
+ "update_memoryset",
231
+ "update_model",
220
232
  "update_prediction",
221
233
  ]
@@ -17,7 +17,7 @@ import httpx
17
17
 
18
18
  from ...client import _client_context
19
19
  from ...errors import get_error_for_response
20
- from ...models.label_prediction_result import LabelPredictionResult
20
+ from ...models.base_label_prediction_result import BaseLabelPredictionResult
21
21
  from ...models.prediction_request import PredictionRequest
22
22
  from ...types import Response
23
23
 
@@ -43,12 +43,12 @@ def _get_kwargs(
43
43
  return _kwargs
44
44
 
45
45
 
46
- def _parse_response(*, response: httpx.Response) -> List["LabelPredictionResult"]:
46
+ def _parse_response(*, response: httpx.Response) -> List["BaseLabelPredictionResult"]:
47
47
  if response.status_code == 200:
48
48
  response_200 = []
49
49
  _response_200 = response.json()
50
50
  for response_200_item_data in _response_200:
51
- response_200_item = LabelPredictionResult.from_dict(response_200_item_data)
51
+ response_200_item = BaseLabelPredictionResult.from_dict(response_200_item_data)
52
52
 
53
53
  response_200.append(response_200_item)
54
54
 
@@ -67,7 +67,7 @@ def _parse_response(*, response: httpx.Response) -> List["LabelPredictionResult"
67
67
  raise get_error_for_response(response)
68
68
 
69
69
 
70
- def _build_response(*, response: httpx.Response) -> Response[List["LabelPredictionResult"]]:
70
+ def _build_response(*, response: httpx.Response) -> Response[List["BaseLabelPredictionResult"]]:
71
71
  return Response(
72
72
  status_code=HTTPStatus(response.status_code),
73
73
  content=response.content,
@@ -80,7 +80,7 @@ def sync_detailed(
80
80
  name_or_id: str,
81
81
  *,
82
82
  body: PredictionRequest,
83
- ) -> Response[List["LabelPredictionResult"]]:
83
+ ) -> Response[List["BaseLabelPredictionResult"]]:
84
84
  """Predict
85
85
 
86
86
  Args:
@@ -92,7 +92,7 @@ def sync_detailed(
92
92
  httpx.TimeoutException: If the request takes longer than Client.timeout.
93
93
 
94
94
  Returns:
95
- Response[List['LabelPredictionResult']]
95
+ Response[List['BaseLabelPredictionResult']]
96
96
  """
97
97
 
98
98
  kwargs = _get_kwargs(
@@ -112,7 +112,7 @@ def sync(
112
112
  name_or_id: str,
113
113
  *,
114
114
  body: PredictionRequest,
115
- ) -> List["LabelPredictionResult"]:
115
+ ) -> List["BaseLabelPredictionResult"]:
116
116
  """Predict
117
117
 
118
118
  Args:
@@ -124,7 +124,7 @@ def sync(
124
124
  httpx.TimeoutException: If the request takes longer than Client.timeout.
125
125
 
126
126
  Returns:
127
- List['LabelPredictionResult']
127
+ List['BaseLabelPredictionResult']
128
128
  """
129
129
 
130
130
  return sync_detailed(
@@ -137,7 +137,7 @@ async def asyncio_detailed(
137
137
  name_or_id: str,
138
138
  *,
139
139
  body: PredictionRequest,
140
- ) -> Response[List["LabelPredictionResult"]]:
140
+ ) -> Response[List["BaseLabelPredictionResult"]]:
141
141
  """Predict
142
142
 
143
143
  Args:
@@ -149,7 +149,7 @@ async def asyncio_detailed(
149
149
  httpx.TimeoutException: If the request takes longer than Client.timeout.
150
150
 
151
151
  Returns:
152
- Response[List['LabelPredictionResult']]
152
+ Response[List['BaseLabelPredictionResult']]
153
153
  """
154
154
 
155
155
  kwargs = _get_kwargs(
@@ -167,7 +167,7 @@ async def asyncio(
167
167
  name_or_id: str,
168
168
  *,
169
169
  body: PredictionRequest,
170
- ) -> List["LabelPredictionResult"]:
170
+ ) -> List["BaseLabelPredictionResult"]:
171
171
  """Predict
172
172
 
173
173
  Args:
@@ -179,7 +179,7 @@ async def asyncio(
179
179
  httpx.TimeoutException: If the request takes longer than Client.timeout.
180
180
 
181
181
  Returns:
182
- List['LabelPredictionResult']
182
+ List['BaseLabelPredictionResult']
183
183
  """
184
184
 
185
185
  return (
@@ -0,0 +1,183 @@
1
+ """
2
+ This file is generated by the openapi-python-client tool via the generate_api_client.py script
3
+
4
+ It is a customized template from the openapi-python-client tool's default template:
5
+ https://github.com/openapi-generators/openapi-python-client/blob/861ef5622f10fc96d240dc9becb0edf94e61446c/openapi_python_client/templates/endpoint_module.py.jinja
6
+
7
+ The main changes are:
8
+ - Update the API call responses to either return the successful response type or raise an error by:
9
+ - Updating the _parse_response function to raise an error if the response status code is not in the 2xx range
10
+ - Inject a client into every method via a context manager
11
+ """
12
+
13
+ from http import HTTPStatus
14
+ from typing import Any, Dict
15
+
16
+ import httpx
17
+
18
+ from ...client import _client_context
19
+ from ...errors import get_error_for_response
20
+ from ...models.rac_model_metadata import RACModelMetadata
21
+ from ...models.rac_model_update import RACModelUpdate
22
+ from ...types import Response
23
+
24
+
25
+ def _get_kwargs(
26
+ name_or_id: str,
27
+ *,
28
+ body: RACModelUpdate,
29
+ ) -> dict[str, Any]:
30
+ headers: Dict[str, Any] = {}
31
+
32
+ _kwargs: dict[str, Any] = {
33
+ "method": "patch",
34
+ "url": f"/classification_model/{name_or_id}",
35
+ }
36
+
37
+ _body = body.to_dict()
38
+
39
+ _kwargs["json"] = _body
40
+ headers["Content-Type"] = "application/json"
41
+
42
+ _kwargs["headers"] = headers
43
+ return _kwargs
44
+
45
+
46
+ def _parse_response(*, response: httpx.Response) -> RACModelMetadata:
47
+ if response.status_code == 200:
48
+ response_200 = RACModelMetadata.from_dict(response.json())
49
+
50
+ return response_200
51
+ if response.status_code == 401:
52
+ raise get_error_for_response(response)
53
+ if response.status_code == 500:
54
+ raise get_error_for_response(response)
55
+ if response.status_code == 503:
56
+ raise get_error_for_response(response)
57
+ if response.status_code == 404:
58
+ raise get_error_for_response(response)
59
+ else:
60
+ raise get_error_for_response(response)
61
+
62
+
63
+ def _build_response(*, response: httpx.Response) -> Response[RACModelMetadata]:
64
+ return Response(
65
+ status_code=HTTPStatus(response.status_code),
66
+ content=response.content,
67
+ headers=response.headers,
68
+ parsed=_parse_response(response=response),
69
+ )
70
+
71
+
72
+ def sync_detailed(
73
+ name_or_id: str,
74
+ *,
75
+ body: RACModelUpdate,
76
+ ) -> Response[RACModelMetadata]:
77
+ """Update Model
78
+
79
+ Args:
80
+ name_or_id (str):
81
+ body (RACModelUpdate):
82
+
83
+ Raises:
84
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
85
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
86
+
87
+ Returns:
88
+ Response[RACModelMetadata]
89
+ """
90
+
91
+ kwargs = _get_kwargs(
92
+ name_or_id=name_or_id,
93
+ body=body,
94
+ )
95
+
96
+ with _client_context() as client:
97
+ response = client.get_httpx_client().request(
98
+ **kwargs,
99
+ )
100
+
101
+ return _build_response(response=response)
102
+
103
+
104
+ def sync(
105
+ name_or_id: str,
106
+ *,
107
+ body: RACModelUpdate,
108
+ ) -> RACModelMetadata:
109
+ """Update Model
110
+
111
+ Args:
112
+ name_or_id (str):
113
+ body (RACModelUpdate):
114
+
115
+ Raises:
116
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
117
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
118
+
119
+ Returns:
120
+ RACModelMetadata
121
+ """
122
+
123
+ return sync_detailed(
124
+ name_or_id=name_or_id,
125
+ body=body,
126
+ ).parsed
127
+
128
+
129
+ async def asyncio_detailed(
130
+ name_or_id: str,
131
+ *,
132
+ body: RACModelUpdate,
133
+ ) -> Response[RACModelMetadata]:
134
+ """Update Model
135
+
136
+ Args:
137
+ name_or_id (str):
138
+ body (RACModelUpdate):
139
+
140
+ Raises:
141
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
142
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
143
+
144
+ Returns:
145
+ Response[RACModelMetadata]
146
+ """
147
+
148
+ kwargs = _get_kwargs(
149
+ name_or_id=name_or_id,
150
+ body=body,
151
+ )
152
+
153
+ with _client_context() as client:
154
+ response = await client.get_async_httpx_client().request(**kwargs)
155
+
156
+ return _build_response(response=response)
157
+
158
+
159
+ async def asyncio(
160
+ name_or_id: str,
161
+ *,
162
+ body: RACModelUpdate,
163
+ ) -> RACModelMetadata:
164
+ """Update Model
165
+
166
+ Args:
167
+ name_or_id (str):
168
+ body (RACModelUpdate):
169
+
170
+ Raises:
171
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
172
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
173
+
174
+ Returns:
175
+ RACModelMetadata
176
+ """
177
+
178
+ return (
179
+ await asyncio_detailed(
180
+ name_or_id=name_or_id,
181
+ body=body,
182
+ )
183
+ ).parsed
@@ -0,0 +1,168 @@
1
+ """
2
+ This file is generated by the openapi-python-client tool via the generate_api_client.py script
3
+
4
+ It is a customized template from the openapi-python-client tool's default template:
5
+ https://github.com/openapi-generators/openapi-python-client/blob/861ef5622f10fc96d240dc9becb0edf94e61446c/openapi_python_client/templates/endpoint_module.py.jinja
6
+
7
+ The main changes are:
8
+ - Update the API call responses to either return the successful response type or raise an error by:
9
+ - Updating the _parse_response function to raise an error if the response status code is not in the 2xx range
10
+ - Inject a client into every method via a context manager
11
+ """
12
+
13
+ from http import HTTPStatus
14
+ from typing import Any, Dict
15
+
16
+ import httpx
17
+
18
+ from ...client import _client_context
19
+ from ...errors import get_error_for_response
20
+ from ...models.delete_memorysets_request import DeleteMemorysetsRequest
21
+ from ...types import Response
22
+
23
+
24
+ def _get_kwargs(
25
+ *,
26
+ body: DeleteMemorysetsRequest,
27
+ ) -> dict[str, Any]:
28
+ headers: Dict[str, Any] = {}
29
+
30
+ _kwargs: dict[str, Any] = {
31
+ "method": "post",
32
+ "url": "/batch_delete_memoryset",
33
+ }
34
+
35
+ _body = body.to_dict()
36
+
37
+ _kwargs["json"] = _body
38
+ headers["Content-Type"] = "application/json"
39
+
40
+ _kwargs["headers"] = headers
41
+ return _kwargs
42
+
43
+
44
+ def _parse_response(*, response: httpx.Response) -> None:
45
+ if response.status_code == 204:
46
+ response_204 = None
47
+ return response_204
48
+ if response.status_code == 401:
49
+ raise get_error_for_response(response)
50
+ if response.status_code == 500:
51
+ raise get_error_for_response(response)
52
+ if response.status_code == 503:
53
+ raise get_error_for_response(response)
54
+ if response.status_code == 409:
55
+ raise get_error_for_response(response)
56
+ else:
57
+ raise get_error_for_response(response)
58
+
59
+
60
+ def _build_response(*, response: httpx.Response) -> Response[None]:
61
+ return Response(
62
+ status_code=HTTPStatus(response.status_code),
63
+ content=response.content,
64
+ headers=response.headers,
65
+ parsed=_parse_response(response=response),
66
+ )
67
+
68
+
69
+ def sync_detailed(
70
+ *,
71
+ body: DeleteMemorysetsRequest,
72
+ ) -> Response[None]:
73
+ """Batch Delete Memoryset
74
+
75
+ Args:
76
+ body (DeleteMemorysetsRequest):
77
+
78
+ Raises:
79
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
80
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
81
+
82
+ Returns:
83
+ Response[None]
84
+ """
85
+
86
+ kwargs = _get_kwargs(
87
+ body=body,
88
+ )
89
+
90
+ with _client_context() as client:
91
+ response = client.get_httpx_client().request(
92
+ **kwargs,
93
+ )
94
+
95
+ return _build_response(response=response)
96
+
97
+
98
+ def sync(
99
+ *,
100
+ body: DeleteMemorysetsRequest,
101
+ ) -> None:
102
+ """Batch Delete Memoryset
103
+
104
+ Args:
105
+ body (DeleteMemorysetsRequest):
106
+
107
+ Raises:
108
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
109
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
110
+
111
+ Returns:
112
+ None
113
+ """
114
+
115
+ return sync_detailed(
116
+ body=body,
117
+ ).parsed
118
+
119
+
120
+ async def asyncio_detailed(
121
+ *,
122
+ body: DeleteMemorysetsRequest,
123
+ ) -> Response[None]:
124
+ """Batch Delete Memoryset
125
+
126
+ Args:
127
+ body (DeleteMemorysetsRequest):
128
+
129
+ Raises:
130
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
131
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
132
+
133
+ Returns:
134
+ Response[None]
135
+ """
136
+
137
+ kwargs = _get_kwargs(
138
+ body=body,
139
+ )
140
+
141
+ with _client_context() as client:
142
+ response = await client.get_async_httpx_client().request(**kwargs)
143
+
144
+ return _build_response(response=response)
145
+
146
+
147
+ async def asyncio(
148
+ *,
149
+ body: DeleteMemorysetsRequest,
150
+ ) -> None:
151
+ """Batch Delete Memoryset
152
+
153
+ Args:
154
+ body (DeleteMemorysetsRequest):
155
+
156
+ Raises:
157
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
158
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
159
+
160
+ Returns:
161
+ None
162
+ """
163
+
164
+ return (
165
+ await asyncio_detailed(
166
+ body=body,
167
+ )
168
+ ).parsed
@@ -0,0 +1,183 @@
1
+ """
2
+ This file is generated by the openapi-python-client tool via the generate_api_client.py script
3
+
4
+ It is a customized template from the openapi-python-client tool's default template:
5
+ https://github.com/openapi-generators/openapi-python-client/blob/861ef5622f10fc96d240dc9becb0edf94e61446c/openapi_python_client/templates/endpoint_module.py.jinja
6
+
7
+ The main changes are:
8
+ - Update the API call responses to either return the successful response type or raise an error by:
9
+ - Updating the _parse_response function to raise an error if the response status code is not in the 2xx range
10
+ - Inject a client into every method via a context manager
11
+ """
12
+
13
+ from http import HTTPStatus
14
+ from typing import Any, Dict
15
+
16
+ import httpx
17
+
18
+ from ...client import _client_context
19
+ from ...errors import get_error_for_response
20
+ from ...models.labeled_memoryset_metadata import LabeledMemorysetMetadata
21
+ from ...models.labeled_memoryset_update import LabeledMemorysetUpdate
22
+ from ...types import Response
23
+
24
+
25
+ def _get_kwargs(
26
+ name_or_id: str,
27
+ *,
28
+ body: LabeledMemorysetUpdate,
29
+ ) -> dict[str, Any]:
30
+ headers: Dict[str, Any] = {}
31
+
32
+ _kwargs: dict[str, Any] = {
33
+ "method": "patch",
34
+ "url": f"/memoryset/{name_or_id}",
35
+ }
36
+
37
+ _body = body.to_dict()
38
+
39
+ _kwargs["json"] = _body
40
+ headers["Content-Type"] = "application/json"
41
+
42
+ _kwargs["headers"] = headers
43
+ return _kwargs
44
+
45
+
46
+ def _parse_response(*, response: httpx.Response) -> LabeledMemorysetMetadata:
47
+ if response.status_code == 200:
48
+ response_200 = LabeledMemorysetMetadata.from_dict(response.json())
49
+
50
+ return response_200
51
+ if response.status_code == 401:
52
+ raise get_error_for_response(response)
53
+ if response.status_code == 500:
54
+ raise get_error_for_response(response)
55
+ if response.status_code == 503:
56
+ raise get_error_for_response(response)
57
+ if response.status_code == 404:
58
+ raise get_error_for_response(response)
59
+ else:
60
+ raise get_error_for_response(response)
61
+
62
+
63
+ def _build_response(*, response: httpx.Response) -> Response[LabeledMemorysetMetadata]:
64
+ return Response(
65
+ status_code=HTTPStatus(response.status_code),
66
+ content=response.content,
67
+ headers=response.headers,
68
+ parsed=_parse_response(response=response),
69
+ )
70
+
71
+
72
+ def sync_detailed(
73
+ name_or_id: str,
74
+ *,
75
+ body: LabeledMemorysetUpdate,
76
+ ) -> Response[LabeledMemorysetMetadata]:
77
+ """Update Memoryset
78
+
79
+ Args:
80
+ name_or_id (str):
81
+ body (LabeledMemorysetUpdate):
82
+
83
+ Raises:
84
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
85
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
86
+
87
+ Returns:
88
+ Response[LabeledMemorysetMetadata]
89
+ """
90
+
91
+ kwargs = _get_kwargs(
92
+ name_or_id=name_or_id,
93
+ body=body,
94
+ )
95
+
96
+ with _client_context() as client:
97
+ response = client.get_httpx_client().request(
98
+ **kwargs,
99
+ )
100
+
101
+ return _build_response(response=response)
102
+
103
+
104
+ def sync(
105
+ name_or_id: str,
106
+ *,
107
+ body: LabeledMemorysetUpdate,
108
+ ) -> LabeledMemorysetMetadata:
109
+ """Update Memoryset
110
+
111
+ Args:
112
+ name_or_id (str):
113
+ body (LabeledMemorysetUpdate):
114
+
115
+ Raises:
116
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
117
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
118
+
119
+ Returns:
120
+ LabeledMemorysetMetadata
121
+ """
122
+
123
+ return sync_detailed(
124
+ name_or_id=name_or_id,
125
+ body=body,
126
+ ).parsed
127
+
128
+
129
+ async def asyncio_detailed(
130
+ name_or_id: str,
131
+ *,
132
+ body: LabeledMemorysetUpdate,
133
+ ) -> Response[LabeledMemorysetMetadata]:
134
+ """Update Memoryset
135
+
136
+ Args:
137
+ name_or_id (str):
138
+ body (LabeledMemorysetUpdate):
139
+
140
+ Raises:
141
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
142
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
143
+
144
+ Returns:
145
+ Response[LabeledMemorysetMetadata]
146
+ """
147
+
148
+ kwargs = _get_kwargs(
149
+ name_or_id=name_or_id,
150
+ body=body,
151
+ )
152
+
153
+ with _client_context() as client:
154
+ response = await client.get_async_httpx_client().request(**kwargs)
155
+
156
+ return _build_response(response=response)
157
+
158
+
159
+ async def asyncio(
160
+ name_or_id: str,
161
+ *,
162
+ body: LabeledMemorysetUpdate,
163
+ ) -> LabeledMemorysetMetadata:
164
+ """Update Memoryset
165
+
166
+ Args:
167
+ name_or_id (str):
168
+ body (LabeledMemorysetUpdate):
169
+
170
+ Raises:
171
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
172
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
173
+
174
+ Returns:
175
+ LabeledMemorysetMetadata
176
+ """
177
+
178
+ return (
179
+ await asyncio_detailed(
180
+ name_or_id=name_or_id,
181
+ body=body,
182
+ )
183
+ ).parsed