Skip to main content

Flumes SDKs

Flumes gives your agents durable, structured memory via a simple, entity‑first SDK. You get a one‑line client, hybrid retrieval with sane presets, explicit budgeting, and optional helpers for grounded chat.

What you get

  • Entity‑first design: always scope by entity_id (user/session) and optional namespace.
  • Add → Extract → Store in a single call using context assemble (no separate summarize step).
  • Hybrid retrieval with presets (balanced, factual, recent, graphy) or explicit weights.
  • Budget caps with pack telemetry on every add.
  • Explicit LLM integration: the Agent helper requires an openai_api_key (or a custom backend).

Install

Python ≥ 3.9.

Minimal example (Python)

What happens on add()

  • Flumes extracts structured facts/events from your turn.
  • It stores them and returns pack telemetry (target/hard cap/used/dropped).
  • You can later retrieve with search() or assemble full context via the API.

Optional Agent helper (explicit key)

The Agent helper assembles context with defaults (preset='factual' + small predicate boost for preferences) and composes a grounded prompt. Provide your own llm_backend to integrate a different LLM.

Next: Python details

  • Dive into the Python specifics, including retrieval knobs and budgeting, in the Python tab.