fleet-memory/hindsight-integrations
DK09876 d93dfea8ce
fix(llamaindex): document_id, memory API, and ReAct trace fixes (#777)
* fix(llamaindex): use uuid for document_id and sync version metadata

- Replace timestamp-based document_id with uuid4 hex to prevent
  collisions on rapid retains (timestamp_ms can duplicate in tight loops)
- Sync __version__ in __init__.py to match pyproject.toml (0.1.2)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(docs): pass memory to run() instead of ReActAgent constructor

LlamaIndex 0.14.x ReActAgent does not accept a memory parameter in
its constructor — it's silently dropped via **kwargs. Memory must be
passed to agent.run(memory=...) where AgentWorkflow picks it up.

Also fixes the undefined `tools` variable (now `tools=[]`).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(llamaindex): strip ReAct reasoning traces from retained assistant messages

HindsightMemory.put/aput now extracts only the final Answer: text from
assistant messages containing ReAct reasoning (Thought:/Action:/Observation:
prefixes), preventing internal reasoning traces from polluting long-term memory.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(llamaindex): fix docstring example to pass memory to run()

The HindsightMemory class docstring showed the broken pattern of passing
memory= to the ReActAgent constructor, which silently drops it. Updated
to show the correct pattern: pass memory to agent.run().

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-30 18:33:03 +02:00
..
ag2 release(ag2): v0.1.1 2026-03-27 10:12:30 +01:00
agno fix: add readme field to integration pyproject.toml files for PyPI (#634) 2026-03-20 17:11:20 +01:00
ai-sdk fix: resolve all Dependabot security alerts (#702) 2026-03-26 13:15:36 +01:00
chat fix: resolve all Dependabot security alerts (#702) 2026-03-26 13:15:36 +01:00
claude-code Fix trailing commas in openclaw.plugin.json and add JSON manifest CI tests (#774) 2026-03-30 16:55:06 +02:00
codex release(codex): v0.2.0 2026-03-30 17:50:02 +02:00
crewai fix: resolve remaining Dependabot security alerts (#705) 2026-03-26 13:43:27 +01:00
hermes release(hermes): v0.5.0 2026-03-30 14:50:04 +02:00
langgraph fix: resolve remaining Dependabot security alerts (#705) 2026-03-26 13:43:27 +01:00
litellm fix: resolve remaining Dependabot security alerts (#705) 2026-03-26 13:43:27 +01:00
llamaindex fix(llamaindex): document_id, memory API, and ReAct trace fixes (#777) 2026-03-30 18:33:03 +02:00
nemoclaw fix: resolve all Dependabot security alerts (#702) 2026-03-26 13:15:36 +01:00
openclaw release(openclaw): v0.5.1 2026-03-30 16:58:18 +02:00
pydantic-ai fix: add readme field to integration pyproject.toml files for PyPI (#634) 2026-03-20 17:11:20 +01:00
strands release(strands): v0.1.1 2026-03-24 17:42:52 +01:00