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.0.tar.gz (9.1 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.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for forefetch_client-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b0b657375b99c5f72e5beff8cc72cecca64be9ef9a17c8f9fb5f10ff730314e7
MD5 96f96d70025bf346934e6618b275259a
BLAKE2b-256 b805c2b620662810d0fbaf84a8b04274836fe1ebd06c3ed6d4b0ccd058e1a7ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for forefetch_client-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bdb4ebe0cec5c59442c6acac5858670d9241ef019b8d282389b8386dae12d05f
MD5 cf514675656ea0900f6d9825467cf4ab
BLAKE2b-256 4cbf99f3616e77b26416210e66ca5d2ff8fdafde7b147cf4c1956b91f7e3d1ac

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.1

2 files

This release

0.2.0 This release

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