Registry / ai-ml / hindsight-api

hindsight-api

JSON →
library0.7.2pypypiunverified

Hindsight is a framework for agent memory that mimics human memory processes—working memory, episodic memory, and semantic memory. Version 0.7.2 requires Python >=3.11. It provides a simple API to store, retrieve, and search memories with built-in decay and consolidation.

pip install hindsight-api
INSTALL
IMPORT
SIG · HINDSIGHT-API
H
hindsight-api
ai-mlpythonv0.7.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Hindsight
from hindsight.api import Hindsight
from hindsight import Hindsight

Initialize Hindsight client, create a memory, and search for memories.

import os from hindsight import Hindsight client = Hindsight(api_key=os.environ.get('HINDSIGHT_API_KEY', '')) # Create a memory memory = client.create_memory( content="Meeting with Alice about project X on Tuesday.", metadata={"category": "work", "importance": 5} ) print(f"Memory ID: {memory.id}") # Search memories results = client.search("project X") for mem in results: print(mem.content)
Debug
Known issues
breakingVersion 0.7.0 changed the import path from 'hindsight_api' to 'hindsight'. Update all imports.
fix
Replace 'from hindsight_api import ...' with 'from hindsight import ...'.
affects: <0.7.0 -> >=0.7.0
gotchaThe API key must be passed explicitly via environment variable or constructor; there is no automatic discovery.
fix
Either set HINDSIGHT_API_KEY environment variable or pass api_key parameter to Hindsight constructor.
affects: all
deprecatedThe method `store_memory` is deprecated in favor of `create_memory` since 0.6.0.
fix
Use `create_memory` instead of `store_memory`.
affects: >=0.6.0
gotchaThe library requires Python >=3.11. Installations on older Python versions will fail.
fix
Use Python 3.11 or later.
affects: all
Upgrade
Version history
0.7.2latest on PyPI · released Jun 2, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
18
Resources

No resource links recorded.

hindsight-api — pip install hindsight-api · libregistry