MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / _downloaded

Function _downloaded

tests/lib/tools/memory_sync/test_two_pass.py:24–29  ·  view source on GitHub ↗

A `SessionMemoryStores` with one store already downloaded to disk.

(tmp_path: Path, initial: dict[str, str])

Source from the content-addressed store, hash-verified

22
23
24async def _downloaded(tmp_path: Path, initial: dict[str, str]) -> tuple[Path, MemoryServer, SessionMemoryStores]:
25 """A `SessionMemoryStores` with one store already downloaded to disk."""
26 client, server = fake_anthropic(initial)
27 stores = SessionMemoryStores(client, workdir=tmp_path)
28 await stores.download(await client.beta.sessions.retrieve("s1"))
29 return tmp_path / "memory" / "notes", server, stores
30
31
32@pytest.mark.asyncio()

Calls 4

downloadMethod · 0.95
SessionMemoryStoresClass · 0.90
fake_anthropicFunction · 0.85
retrieveMethod · 0.45

Tested by

no test coverage detected