{"id":45098,"library":"hindsight-api","title":"Hindsight API","description":"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.","status":"active","version":"0.7.2","language":"python","source_language":"en","source_url":"https://github.com/get-hindsight/hindsight-api","tags":["hindsight","agent memory","ai","memory"],"install":[{"cmd":"pip install hindsight-api","lang":"bash","label":"Install with pip"}],"dependencies":[],"imports":[{"wrong":"from hindsight import Hindsight","symbol":"Hindsight","correct":"from hindsight.api import Hindsight"}],"quickstart":{"code":"import os\nfrom hindsight import Hindsight\n\nclient = Hindsight(api_key=os.environ.get('HINDSIGHT_API_KEY', ''))\n\n# Create a memory\nmemory = client.create_memory(\n    content=\"Meeting with Alice about project X on Tuesday.\",\n    metadata={\"category\": \"work\", \"importance\": 5}\n)\nprint(f\"Memory ID: {memory.id}\")\n\n# Search memories\nresults = client.search(\"project X\")\nfor mem in results:\n    print(mem.content)\n","lang":"python","description":"Initialize Hindsight client, create a memory, and search for memories."},"warnings":[{"fix":"Replace 'from hindsight_api import ...' with 'from hindsight import ...'.","message":"Version 0.7.0 changed the import path from 'hindsight_api' to 'hindsight'. Update all imports.","severity":"breaking","affected_versions":"<0.7.0 -> >=0.7.0"},{"fix":"Either set HINDSIGHT_API_KEY environment variable or pass api_key parameter to Hindsight constructor.","message":"The API key must be passed explicitly via environment variable or constructor; there is no automatic discovery.","severity":"gotcha","affected_versions":"all"},{"fix":"Use `create_memory` instead of `store_memory`.","message":"The method `store_memory` is deprecated in favor of `create_memory` since 0.6.0.","severity":"deprecated","affected_versions":">=0.6.0"},{"fix":"Use Python 3.11 or later.","message":"The library requires Python >=3.11. Installations on older Python versions will fail.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.7.2':23 '3.11':26 'agent':8,46 'ai':48 'api':2,31 'built':40 'built-in':39 'consolid':44 'decay':42 'episod':17 'framework':6 'hindsight':1,3,45 'human':12 'memori':9,13,16,18,21,37,47,49 'mimic':11 'process':14 'provid':28 'python':25 'requir':24 'retriev':34 'search':36 'semant':20 'simpl':30 'store':33 'version':22 'work':15","created_at":"2026-06-07T12:53:21.614979+00:00","updated_at":"2026-06-07T12:53:21.614979+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nModuleNotFoundError: No module named 'hindsight'"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}