Shared memory and tool layer for Perseus agents — MemoryEntry, Elastic/Engram backends, decision log, knowledge graph, project context.
Project description
perseus-agent-core
Shared memory and tool layer for Perseus agents. Extracted from
perseus-rapid-agent and
perseus-qwen-memory, which
previously carried copy-pasted copies of this code — the same MemoryEntry
crash shipped twice because of it. Fixes now land once, here.
What's in it
perseus_agent_core.memory—MemoryEntry,MemorySearchResult,MemoryBackend(interface),MemoryBackendError, plus two implementations:ElasticMemoryBackend— Elasticsearch viaelasticsearch-py, keyword search always, ELSER semantic search when the deployment supports it.EngramMemoryBackend— shells out to the engram-rs CLI; retry-on-lock, timeout handling, helpful install hint when missing.
perseus_agent_core.tools—DecisionLogTool,KnowledgeGraphTool,ProjectContextTool.
Agent-specific code (AgentConfig, agent classes, LLM clients, demos) stays in
the consuming repos.
Install
pip install "perseus-agent-core @ git+https://github.com/tcconnally/perseus-agent-core.git"
# with the Elasticsearch backend:
pip install "perseus-agent-core[elastic] @ git+https://github.com/tcconnally/perseus-agent-core.git"
There are zero hard dependencies — the elastic client is imported lazily only
when ElasticMemoryBackend is used.
Usage
from perseus_agent_core.memory import EngramMemoryBackend, MemoryEntry
from perseus_agent_core.tools import DecisionLogTool
memory = EngramMemoryBackend()
log = DecisionLogTool(memory)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file perseus_agent_core-0.2.0-py3-none-any.whl.
File metadata
- Download URL: perseus_agent_core-0.2.0-py3-none-any.whl
- Upload date:
- Size: 17.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97cdc125dc432a38559ce90aa2572d099cedb177f6f505596bcc696e5122fb2b
|
|
| MD5 |
0d302ca3c8109717d1c39a4fea7c79b9
|
|
| BLAKE2b-256 |
b34394717d8a502a3dba84674c579400a156462b9053935bbacdfc6abc3890aa
|