Debian Codegraph @

tests/api_resources/beta/test_memory_stores.py

raw
1 from __future__ import annotations
2
3 import os
4 from typing import Any, cast
5
6 import pytest
7
8 from anthropic import Anthropic, AsyncAnthropic
9 from tests.utils import assert_matches_type
10 from anthropic._utils import parse_datetime
11 from anthropic.pagination import SyncPageCursor, AsyncPageCursor
12 from anthropic.types.beta import (
13 BetaManagedAgentsMemoryStore,
14 BetaManagedAgentsDeletedMemoryStore,
15 )
16
17 base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
18
19
20 class TestMemoryStores:
21 parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
22
23 @parametrize
24 def test_method_create(self, client: Anthropic) -> None:
25 memory_store = client.beta.memory_stores.create(
26 name="x",
27 )
28 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
29
30 @parametrize
31 def test_method_create_with_all_params(self, client: Anthropic) -> None:
32 memory_store = client.beta.memory_stores.create(
33 name="x",
34 description="description",
35 metadata={"foo": "string"},
36 betas=["message-batches-2024-09-24"],
37 workspace_id="wrkspc_011CZkZaBF1tNoB5wlCeusgy",
38 )
39 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
40
41 @parametrize
42 def test_raw_response_create(self, client: Anthropic) -> None:
43 response = client.beta.memory_stores.with_raw_response.create(
44 name="x",
45 )
46
47 assert response.is_closed is True
48 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
49 memory_store = response.parse()
50 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
51
52 @parametrize
53 def test_streaming_response_create(self, client: Anthropic) -> None:
54 with client.beta.memory_stores.with_streaming_response.create(
55 name="x",
56 ) as response:
57 assert not response.is_closed
58 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
59
60 memory_store = response.parse()
61 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
62
63 assert cast(Any, response.is_closed) is True
64
65 @parametrize
66 def test_method_retrieve(self, client: Anthropic) -> None:
67 memory_store = client.beta.memory_stores.retrieve(
68 memory_store_id="memory_store_id",
69 )
70 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
71
72 @parametrize
73 def test_method_retrieve_with_all_params(self, client: Anthropic) -> None:
74 memory_store = client.beta.memory_stores.retrieve(
75 memory_store_id="memory_store_id",
76 betas=["message-batches-2024-09-24"],
77 workspace_id="wrkspc_011CZkZaBF1tNoB5wlCeusgy",
78 )
79 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
80
81 @parametrize
82 def test_raw_response_retrieve(self, client: Anthropic) -> None:
83 response = client.beta.memory_stores.with_raw_response.retrieve(
84 memory_store_id="memory_store_id",
85 )
86
87 assert response.is_closed is True
88 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
89 memory_store = response.parse()
90 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
91
92 @parametrize
93 def test_streaming_response_retrieve(self, client: Anthropic) -> None:
94 with client.beta.memory_stores.with_streaming_response.retrieve(
95 memory_store_id="memory_store_id",
96 ) as response:
97 assert not response.is_closed
98 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
99
100 memory_store = response.parse()
101 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
102
103 assert cast(Any, response.is_closed) is True
104
105 @parametrize
106 def test_path_params_retrieve(self, client: Anthropic) -> None:
107 with pytest.raises(ValueError, match=r"Expected a non-empty value for `memory_store_id` but received ''"):
108 client.beta.memory_stores.with_raw_response.retrieve(
109 memory_store_id="",
110 )
111
112 @parametrize
113 def test_method_update(self, client: Anthropic) -> None:
114 memory_store = client.beta.memory_stores.update(
115 memory_store_id="memory_store_id",
116 )
117 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
118
119 @parametrize
120 def test_method_update_with_all_params(self, client: Anthropic) -> None:
121 memory_store = client.beta.memory_stores.update(
122 memory_store_id="memory_store_id",
123 description="description",
124 metadata={"foo": "string"},
125 name="x",
126 betas=["message-batches-2024-09-24"],
127 workspace_id="wrkspc_011CZkZaBF1tNoB5wlCeusgy",
128 )
129 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
130
131 @parametrize
132 def test_raw_response_update(self, client: Anthropic) -> None:
133 response = client.beta.memory_stores.with_raw_response.update(
134 memory_store_id="memory_store_id",
135 )
136
137 assert response.is_closed is True
138 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
139 memory_store = response.parse()
140 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
141
142 @parametrize
143 def test_streaming_response_update(self, client: Anthropic) -> None:
144 with client.beta.memory_stores.with_streaming_response.update(
145 memory_store_id="memory_store_id",
146 ) as response:
147 assert not response.is_closed
148 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
149
150 memory_store = response.parse()
151 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
152
153 assert cast(Any, response.is_closed) is True
154
155 @parametrize
156 def test_path_params_update(self, client: Anthropic) -> None:
157 with pytest.raises(ValueError, match=r"Expected a non-empty value for `memory_store_id` but received ''"):
158 client.beta.memory_stores.with_raw_response.update(
159 memory_store_id="",
160 )
161
162 @pytest.mark.skip(reason="buildURL drops path-level query params")
163 @parametrize
164 def test_method_list(self, client: Anthropic) -> None:
165 memory_store = client.beta.memory_stores.list()
166 assert_matches_type(SyncPageCursor[BetaManagedAgentsMemoryStore], memory_store, path=["response"])
167
168 @pytest.mark.skip(reason="buildURL drops path-level query params")
169 @parametrize
170 def test_method_list_with_all_params(self, client: Anthropic) -> None:
171 memory_store = client.beta.memory_stores.list(
172 created_at_gte=parse_datetime("2019-12-27T18:11:19.117Z"),
173 created_at_lte=parse_datetime("2019-12-27T18:11:19.117Z"),
174 include_archived=True,
175 limit=0,
176 page="page",
177 betas=["message-batches-2024-09-24"],
178 workspace_id="wrkspc_011CZkZaBF1tNoB5wlCeusgy",
179 )
180 assert_matches_type(SyncPageCursor[BetaManagedAgentsMemoryStore], memory_store, path=["response"])
181
182 @pytest.mark.skip(reason="buildURL drops path-level query params")
183 @parametrize
184 def test_raw_response_list(self, client: Anthropic) -> None:
185 response = client.beta.memory_stores.with_raw_response.list()
186
187 assert response.is_closed is True
188 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
189 memory_store = response.parse()
190 assert_matches_type(SyncPageCursor[BetaManagedAgentsMemoryStore], memory_store, path=["response"])
191
192 @pytest.mark.skip(reason="buildURL drops path-level query params")
193 @parametrize
194 def test_streaming_response_list(self, client: Anthropic) -> None:
195 with client.beta.memory_stores.with_streaming_response.list() as response:
196 assert not response.is_closed
197 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
198
199 memory_store = response.parse()
200 assert_matches_type(SyncPageCursor[BetaManagedAgentsMemoryStore], memory_store, path=["response"])
201
202 assert cast(Any, response.is_closed) is True
203
204 @parametrize
205 def test_method_delete(self, client: Anthropic) -> None:
206 memory_store = client.beta.memory_stores.delete(
207 memory_store_id="memory_store_id",
208 )
209 assert_matches_type(BetaManagedAgentsDeletedMemoryStore, memory_store, path=["response"])
210
211 @parametrize
212 def test_method_delete_with_all_params(self, client: Anthropic) -> None:
213 memory_store = client.beta.memory_stores.delete(
214 memory_store_id="memory_store_id",
215 betas=["message-batches-2024-09-24"],
216 workspace_id="wrkspc_011CZkZaBF1tNoB5wlCeusgy",
217 )
218 assert_matches_type(BetaManagedAgentsDeletedMemoryStore, memory_store, path=["response"])
219
220 @parametrize
221 def test_raw_response_delete(self, client: Anthropic) -> None:
222 response = client.beta.memory_stores.with_raw_response.delete(
223 memory_store_id="memory_store_id",
224 )
225
226 assert response.is_closed is True
227 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
228 memory_store = response.parse()
229 assert_matches_type(BetaManagedAgentsDeletedMemoryStore, memory_store, path=["response"])
230
231 @parametrize
232 def test_streaming_response_delete(self, client: Anthropic) -> None:
233 with client.beta.memory_stores.with_streaming_response.delete(
234 memory_store_id="memory_store_id",
235 ) as response:
236 assert not response.is_closed
237 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
238
239 memory_store = response.parse()
240 assert_matches_type(BetaManagedAgentsDeletedMemoryStore, memory_store, path=["response"])
241
242 assert cast(Any, response.is_closed) is True
243
244 @parametrize
245 def test_path_params_delete(self, client: Anthropic) -> None:
246 with pytest.raises(ValueError, match=r"Expected a non-empty value for `memory_store_id` but received ''"):
247 client.beta.memory_stores.with_raw_response.delete(
248 memory_store_id="",
249 )
250
251 @parametrize
252 def test_method_archive(self, client: Anthropic) -> None:
253 memory_store = client.beta.memory_stores.archive(
254 memory_store_id="memory_store_id",
255 )
256 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
257
258 @parametrize
259 def test_method_archive_with_all_params(self, client: Anthropic) -> None:
260 memory_store = client.beta.memory_stores.archive(
261 memory_store_id="memory_store_id",
262 betas=["message-batches-2024-09-24"],
263 workspace_id="wrkspc_011CZkZaBF1tNoB5wlCeusgy",
264 )
265 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
266
267 @parametrize
268 def test_raw_response_archive(self, client: Anthropic) -> None:
269 response = client.beta.memory_stores.with_raw_response.archive(
270 memory_store_id="memory_store_id",
271 )
272
273 assert response.is_closed is True
274 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
275 memory_store = response.parse()
276 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
277
278 @parametrize
279 def test_streaming_response_archive(self, client: Anthropic) -> None:
280 with client.beta.memory_stores.with_streaming_response.archive(
281 memory_store_id="memory_store_id",
282 ) as response:
283 assert not response.is_closed
284 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
285
286 memory_store = response.parse()
287 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
288
289 assert cast(Any, response.is_closed) is True
290
291 @parametrize
292 def test_path_params_archive(self, client: Anthropic) -> None:
293 with pytest.raises(ValueError, match=r"Expected a non-empty value for `memory_store_id` but received ''"):
294 client.beta.memory_stores.with_raw_response.archive(
295 memory_store_id="",
296 )
297
298
299 class TestAsyncMemoryStores:
300 parametrize = pytest.mark.parametrize(
301 "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
302 )
303
304 @parametrize
305 async def test_method_create(self, async_client: AsyncAnthropic) -> None:
306 memory_store = await async_client.beta.memory_stores.create(
307 name="x",
308 )
309 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
310
311 @parametrize
312 async def test_method_create_with_all_params(self, async_client: AsyncAnthropic) -> None:
313 memory_store = await async_client.beta.memory_stores.create(
314 name="x",
315 description="description",
316 metadata={"foo": "string"},
317 betas=["message-batches-2024-09-24"],
318 workspace_id="wrkspc_011CZkZaBF1tNoB5wlCeusgy",
319 )
320 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
321
322 @parametrize
323 async def test_raw_response_create(self, async_client: AsyncAnthropic) -> None:
324 response = await async_client.beta.memory_stores.with_raw_response.create(
325 name="x",
326 )
327
328 assert response.is_closed is True
329 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
330 memory_store = await response.parse()
331 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
332
333 @parametrize
334 async def test_streaming_response_create(self, async_client: AsyncAnthropic) -> None:
335 async with async_client.beta.memory_stores.with_streaming_response.create(
336 name="x",
337 ) as response:
338 assert not response.is_closed
339 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
340
341 memory_store = await response.parse()
342 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
343
344 assert cast(Any, response.is_closed) is True
345
346 @parametrize
347 async def test_method_retrieve(self, async_client: AsyncAnthropic) -> None:
348 memory_store = await async_client.beta.memory_stores.retrieve(
349 memory_store_id="memory_store_id",
350 )
351 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
352
353 @parametrize
354 async def test_method_retrieve_with_all_params(self, async_client: AsyncAnthropic) -> None:
355 memory_store = await async_client.beta.memory_stores.retrieve(
356 memory_store_id="memory_store_id",
357 betas=["message-batches-2024-09-24"],
358 workspace_id="wrkspc_011CZkZaBF1tNoB5wlCeusgy",
359 )
360 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
361
362 @parametrize
363 async def test_raw_response_retrieve(self, async_client: AsyncAnthropic) -> None:
364 response = await async_client.beta.memory_stores.with_raw_response.retrieve(
365 memory_store_id="memory_store_id",
366 )
367
368 assert response.is_closed is True
369 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
370 memory_store = await response.parse()
371 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
372
373 @parametrize
374 async def test_streaming_response_retrieve(self, async_client: AsyncAnthropic) -> None:
375 async with async_client.beta.memory_stores.with_streaming_response.retrieve(
376 memory_store_id="memory_store_id",
377 ) as response:
378 assert not response.is_closed
379 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
380
381 memory_store = await response.parse()
382 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
383
384 assert cast(Any, response.is_closed) is True
385
386 @parametrize
387 async def test_path_params_retrieve(self, async_client: AsyncAnthropic) -> None:
388 with pytest.raises(ValueError, match=r"Expected a non-empty value for `memory_store_id` but received ''"):
389 await async_client.beta.memory_stores.with_raw_response.retrieve(
390 memory_store_id="",
391 )
392
393 @parametrize
394 async def test_method_update(self, async_client: AsyncAnthropic) -> None:
395 memory_store = await async_client.beta.memory_stores.update(
396 memory_store_id="memory_store_id",
397 )
398 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
399
400 @parametrize
401 async def test_method_update_with_all_params(self, async_client: AsyncAnthropic) -> None:
402 memory_store = await async_client.beta.memory_stores.update(
403 memory_store_id="memory_store_id",
404 description="description",
405 metadata={"foo": "string"},
406 name="x",
407 betas=["message-batches-2024-09-24"],
408 workspace_id="wrkspc_011CZkZaBF1tNoB5wlCeusgy",
409 )
410 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
411
412 @parametrize
413 async def test_raw_response_update(self, async_client: AsyncAnthropic) -> None:
414 response = await async_client.beta.memory_stores.with_raw_response.update(
415 memory_store_id="memory_store_id",
416 )
417
418 assert response.is_closed is True
419 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
420 memory_store = await response.parse()
421 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
422
423 @parametrize
424 async def test_streaming_response_update(self, async_client: AsyncAnthropic) -> None:
425 async with async_client.beta.memory_stores.with_streaming_response.update(
426 memory_store_id="memory_store_id",
427 ) as response:
428 assert not response.is_closed
429 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
430
431 memory_store = await response.parse()
432 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
433
434 assert cast(Any, response.is_closed) is True
435
436 @parametrize
437 async def test_path_params_update(self, async_client: AsyncAnthropic) -> None:
438 with pytest.raises(ValueError, match=r"Expected a non-empty value for `memory_store_id` but received ''"):
439 await async_client.beta.memory_stores.with_raw_response.update(
440 memory_store_id="",
441 )
442
443 @pytest.mark.skip(reason="buildURL drops path-level query params")
444 @parametrize
445 async def test_method_list(self, async_client: AsyncAnthropic) -> None:
446 memory_store = await async_client.beta.memory_stores.list()
447 assert_matches_type(AsyncPageCursor[BetaManagedAgentsMemoryStore], memory_store, path=["response"])
448
449 @pytest.mark.skip(reason="buildURL drops path-level query params")
450 @parametrize
451 async def test_method_list_with_all_params(self, async_client: AsyncAnthropic) -> None:
452 memory_store = await async_client.beta.memory_stores.list(
453 created_at_gte=parse_datetime("2019-12-27T18:11:19.117Z"),
454 created_at_lte=parse_datetime("2019-12-27T18:11:19.117Z"),
455 include_archived=True,
456 limit=0,
457 page="page",
458 betas=["message-batches-2024-09-24"],
459 workspace_id="wrkspc_011CZkZaBF1tNoB5wlCeusgy",
460 )
461 assert_matches_type(AsyncPageCursor[BetaManagedAgentsMemoryStore], memory_store, path=["response"])
462
463 @pytest.mark.skip(reason="buildURL drops path-level query params")
464 @parametrize
465 async def test_raw_response_list(self, async_client: AsyncAnthropic) -> None:
466 response = await async_client.beta.memory_stores.with_raw_response.list()
467
468 assert response.is_closed is True
469 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
470 memory_store = await response.parse()
471 assert_matches_type(AsyncPageCursor[BetaManagedAgentsMemoryStore], memory_store, path=["response"])
472
473 @pytest.mark.skip(reason="buildURL drops path-level query params")
474 @parametrize
475 async def test_streaming_response_list(self, async_client: AsyncAnthropic) -> None:
476 async with async_client.beta.memory_stores.with_streaming_response.list() as response:
477 assert not response.is_closed
478 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
479
480 memory_store = await response.parse()
481 assert_matches_type(AsyncPageCursor[BetaManagedAgentsMemoryStore], memory_store, path=["response"])
482
483 assert cast(Any, response.is_closed) is True
484
485 @parametrize
486 async def test_method_delete(self, async_client: AsyncAnthropic) -> None:
487 memory_store = await async_client.beta.memory_stores.delete(
488 memory_store_id="memory_store_id",
489 )
490 assert_matches_type(BetaManagedAgentsDeletedMemoryStore, memory_store, path=["response"])
491
492 @parametrize
493 async def test_method_delete_with_all_params(self, async_client: AsyncAnthropic) -> None:
494 memory_store = await async_client.beta.memory_stores.delete(
495 memory_store_id="memory_store_id",
496 betas=["message-batches-2024-09-24"],
497 workspace_id="wrkspc_011CZkZaBF1tNoB5wlCeusgy",
498 )
499 assert_matches_type(BetaManagedAgentsDeletedMemoryStore, memory_store, path=["response"])
500
501 @parametrize
502 async def test_raw_response_delete(self, async_client: AsyncAnthropic) -> None:
503 response = await async_client.beta.memory_stores.with_raw_response.delete(
504 memory_store_id="memory_store_id",
505 )
506
507 assert response.is_closed is True
508 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
509 memory_store = await response.parse()
510 assert_matches_type(BetaManagedAgentsDeletedMemoryStore, memory_store, path=["response"])
511
512 @parametrize
513 async def test_streaming_response_delete(self, async_client: AsyncAnthropic) -> None:
514 async with async_client.beta.memory_stores.with_streaming_response.delete(
515 memory_store_id="memory_store_id",
516 ) as response:
517 assert not response.is_closed
518 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
519
520 memory_store = await response.parse()
521 assert_matches_type(BetaManagedAgentsDeletedMemoryStore, memory_store, path=["response"])
522
523 assert cast(Any, response.is_closed) is True
524
525 @parametrize
526 async def test_path_params_delete(self, async_client: AsyncAnthropic) -> None:
527 with pytest.raises(ValueError, match=r"Expected a non-empty value for `memory_store_id` but received ''"):
528 await async_client.beta.memory_stores.with_raw_response.delete(
529 memory_store_id="",
530 )
531
532 @parametrize
533 async def test_method_archive(self, async_client: AsyncAnthropic) -> None:
534 memory_store = await async_client.beta.memory_stores.archive(
535 memory_store_id="memory_store_id",
536 )
537 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
538
539 @parametrize
540 async def test_method_archive_with_all_params(self, async_client: AsyncAnthropic) -> None:
541 memory_store = await async_client.beta.memory_stores.archive(
542 memory_store_id="memory_store_id",
543 betas=["message-batches-2024-09-24"],
544 workspace_id="wrkspc_011CZkZaBF1tNoB5wlCeusgy",
545 )
546 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
547
548 @parametrize
549 async def test_raw_response_archive(self, async_client: AsyncAnthropic) -> None:
550 response = await async_client.beta.memory_stores.with_raw_response.archive(
551 memory_store_id="memory_store_id",
552 )
553
554 assert response.is_closed is True
555 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
556 memory_store = await response.parse()
557 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
558
559 @parametrize
560 async def test_streaming_response_archive(self, async_client: AsyncAnthropic) -> None:
561 async with async_client.beta.memory_stores.with_streaming_response.archive(
562 memory_store_id="memory_store_id",
563 ) as response:
564 assert not response.is_closed
565 assert response.http_request.headers.get("X-Stainless-Lang") == "python"
566
567 memory_store = await response.parse()
568 assert_matches_type(BetaManagedAgentsMemoryStore, memory_store, path=["response"])
569
570 assert cast(Any, response.is_closed) is True
571
572 @parametrize
573 async def test_path_params_archive(self, async_client: AsyncAnthropic) -> None:
574 with pytest.raises(ValueError, match=r"Expected a non-empty value for `memory_store_id` but received ''"):
575 await async_client.beta.memory_stores.with_raw_response.archive(
576 memory_store_id="",
577 )