forefetch-client
The thin Python client for forefetch — an anticipatory memory service for multi-agent pipelines. The server predicts what each agent will need next and ships that content during the previous agent's think-time; this client holds it, so an anticipated retrieval costs one tiny round trip.
One dependency (httpx). No engine code, no models, no vector store on your side.
from forefetch_client import MemoryClient
memory = MemoryClient("https://api.forefetch.com", api_key="yourkey", stream="resolver")
memory.remember(["refund policy: duplicate charges are refunded in full within 5 days"])
r = memory.retrieve("how to resolve: duplicate charge", k=4)
# r["wire_frac"] == 1.0 -> every returned row was already here before you asked
memory.observe("resolver: refunded the duplicate charge") # fire-and-forget event record
memory.suggest(k=3) # labeled proactive context, zero round trips
memory.end_session() # close the task; the next session starts pre-warmed
memory.report() # the scorecard: readiness, wire economics, learned handoffs
- One stream per agent. Streams are hard-isolated; only the anticipation layer moves labeled hints between them.
observe()returns instantly — a background worker ships events in order and banks each response's content push. Callflush()before another agent must see your effects.- Every suggestion carries provenance (
kind, andfrom_streamon handoffs): context your agent can attribute, or ignore.
Access (hosted keys or the self-host image): yashvardhan090202@gmail.com
Metadata
Release files for forefetch-client 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| forefetch_client-0.2.1.tar.gz | 9.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| forefetch_client-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.3 kB
Release files / forefetch_client-0.2.1.tar.gz
| Download URL | forefetch_client-0.2.1.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7bfffd96fc53972bb9d09915ccaa209c0d8f7c35023fede1b7efad7ae682a23d
|
|
BLAKE2b-256 checksum How to use checksums |
1fbbc41ef6c567eb898d879e94b648fcaf208587430c8dd58d15b131e9cdf086
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.6
|
Release files / forefetch_client-0.2.1-py3-none-any.whl
| Download URL | forefetch_client-0.2.1-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2df6862b1af7073d06d22b24be0894af6beac82fb4d67a69c40198a260d5ad5
|
|
BLAKE2b-256 checksum How to use checksums |
1f951e01b5a0264947d7e56bab602c4fb8c80f140c7992e1b5fa90dfc4b147df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.6
|