Python SDK
from aml.wire import GMPClient
from aml.backends.interface import WriteOptions, RetrieveOptions
client = GMPClient.create("https://your-server.com", auth_token="tok_xxx")
client.write("Aria lives in Rome", WriteOptions(tenant_id="my_app"))
results = client.retrieve("Where does Aria live?", RetrieveOptions(budget_tokens=512))
GMPClient is a MemoryBackend — the same object the conformance suite audits. pip install grafomem, import from aml.
Source: src/aml/wire.py