* refactor(llamaindex): merge two packages into single hindsight-llamaindex Merge `llama-index-tools-hindsight` and `llama-index-memory-hindsight` into a single `hindsight-llamaindex` package following our naming convention. - Rename package to `hindsight-llamaindex` (Python module: `hindsight_llamaindex`) - Move HindsightToolSpec and HindsightMemory into the same package - Delete `llamaindex-memory/` directory - Add CI test job for llamaindex integration - Update docs, blog post, and integrations.json * fix(blog): update llamaindex blog post for merged package - Move date to 2026-03-30 - Add HindsightMemory (automatic BaseMemory) pattern - Fix "bank must exist first" pitfall — mission auto-creates - Align all code examples with docs page - Update architecture diagram to show both patterns * fix(docs): add llamaindex/openai icons, rename Codex - Add llamaindex.png and openai.png icons - Rename "OpenAI Codex CLI" to "Codex" in integrations.json and docs - Use openai.png icon for Codex integration
40 lines
1 KiB
Python
40 lines
1 KiB
Python
"""Hindsight memory integration for LlamaIndex agents.
|
|
|
|
Provides two complementary patterns:
|
|
|
|
- **Tools** (``HindsightToolSpec``, ``create_hindsight_tools``):
|
|
Agent-driven memory via LlamaIndex's ``BaseToolSpec``.
|
|
The agent decides when to retain/recall/reflect.
|
|
|
|
- **Memory** (``HindsightMemory``):
|
|
Automatic memory via LlamaIndex's ``BaseMemory`` interface.
|
|
Messages are stored on ``put()`` and recalled on ``get()``.
|
|
|
|
Usage::
|
|
|
|
from hindsight_llamaindex import HindsightToolSpec, create_hindsight_tools
|
|
from hindsight_llamaindex import HindsightMemory
|
|
"""
|
|
|
|
from .config import (
|
|
HindsightLlamaIndexConfig,
|
|
configure,
|
|
get_config,
|
|
reset_config,
|
|
)
|
|
from .errors import HindsightError
|
|
from .memory import HindsightMemory
|
|
from .tools import HindsightToolSpec, create_hindsight_tools
|
|
|
|
__version__ = "0.1.0"
|
|
|
|
__all__ = [
|
|
"configure",
|
|
"get_config",
|
|
"reset_config",
|
|
"HindsightLlamaIndexConfig",
|
|
"HindsightError",
|
|
"HindsightToolSpec",
|
|
"create_hindsight_tools",
|
|
"HindsightMemory",
|
|
]
|