Skip to main content

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. Call flush() before another agent must see your effects.
  • Every suggestion carries provenance (kind, and from_stream on handoffs): context your agent can attribute, or ignore.

Access (hosted keys or the self-host image): yashvardhan090202@gmail.com

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

forefetch_client-0.2.1.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

forefetch_client-0.2.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file forefetch_client-0.2.1.tar.gz.

File metadata

  • Download URL: forefetch_client-0.2.1.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.6

File hashes

Hashes for forefetch_client-0.2.1.tar.gz
Algorithm Hash digest
SHA256 7bfffd96fc53972bb9d09915ccaa209c0d8f7c35023fede1b7efad7ae682a23d
MD5 346b85bfe2cb4a88b04ec07907b87b7b
BLAKE2b-256 1fbbc41ef6c567eb898d879e94b648fcaf208587430c8dd58d15b131e9cdf086

See more details on using hashes here.

File details

Details for the file forefetch_client-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for forefetch_client-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c2df6862b1af7073d06d22b24be0894af6beac82fb4d67a69c40198a260d5ad5
MD5 61456a640e567bb23512186979070603
BLAKE2b-256 1f951e01b5a0264947d7e56bab602c4fb8c80f140c7992e1b5fa90dfc4b147df

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.2.0

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page