# FluctlightLlamaMemory constructs, on main

FluctlightLlamaMemory constructed on main, and get() returned the stored turn. The v0.5.22 release note says that LlamaIndex constructor fix shipped.

FluctlightLlamaMemory lives in fluctlightdb.integrations.llamaindex. A re-run from main on 30 September 2026 constructed it, both with a positional brain and through from_defaults, against llama-index-core 0.14.25. put() then get() returned the stored turn, on the same brain. The GitHub release v0.5.22, published 1 October 2026, says that fix shipped. PyPI published fluctlightdb 0.5.22 the same day. This site does not name a version to install.

## What ran

The positional constructor took connect_agent() and kept the default session id llamaindex. from_defaults required a brain and accepted session_id s1. put() stored one user turn. get("pytest") returned that turn. get_all() returned one message. A second process was not opened for this adapter.

Run from main, against llama-index-core 0.14.25

```python
from fluctlightdb import connect_agent
from fluctlightdb.integrations.llamaindex import FluctlightLlamaMemory
from llama_index.core.llms import ChatMessage, MessageRole

brain = connect_agent("./llama-brain")
positional = FluctlightLlamaMemory(brain)
print(type(positional).__name__, positional.session_id)
memory = FluctlightLlamaMemory.from_defaults(brain=brain, session_id="s1")
print(type(memory).__name__, memory.session_id)
memory.put(ChatMessage(role=MessageRole.USER, content="Use pytest for this repository"))
for message in memory.get("pytest"):
    print(message.role, message.content)
print(len(memory.get_all()))
```

Printed

```text
FluctlightLlamaMemory llamaindex
FluctlightLlamaMemory s1
MessageRole.USER Use pytest for this repository
1
```

## Where it lives

The example in [docs/INTEGRATIONS.md](https://github.com/voxmastery/FluctlightDB/blob/main/docs/INTEGRATIONS.md) is the positional constructor above. The class source is [llamaindex.py](https://github.com/voxmastery/FluctlightDB/blob/main/sdks/python/fluctlightdb/integrations/llamaindex.py). The embedded API does not depend on this adapter. [A coding agent that remembers a decision](/use-cases/coding-agent) is connect_embedded, experience, activate and checkpoint, and that path was run against the published package.

## Related

- [All integrations](/integrations)
- [LangChain, whose chat history returned the session](/integrations/langchain)
- [The embedded path, which did run](/use-cases/coding-agent)
- [The Python API](/docs)
