Skip to main content

recallix-adk: Recallix memory for Google ADK agents

RecallixMemoryService plugs a self-hosted Recallix server into Google's Agent Development Kit as the agent's memory service.

  • No LLM calls for memory. Storing and searching use Recallix's local models; your agent's model is the only one you pay for.
  • Honest search. When Recallix finds nothing that answers the query, search_memory returns no memories, so the agent is not handed near-misses to guess from.
  • Real dates. Each event is stored with the time it happened, even when ADK hands over a session later.
  • Your data stays on your server, separated per ADK user and per app.

Install

pip install recallix-adk          # brings google-adk and the recallix SDK

Run Recallix (quickstart) and create one key with role service, which acts for each of your ADK users:

python -m backend.tools.keys create --user my-adk-app --role service

Use

import os

from google.adk.agents import Agent
from google.adk.runners import Runner
from google.adk.sessions import InMemorySessionService
from google.adk.tools import load_memory
from recallix_adk import RecallixMemoryService

memory = RecallixMemoryService(api_key=os.environ["RECALLIX_SERVICE_KEY"],
                               base_url="http://localhost:8000",
                               mode="balanced")            # or "cautious" / "helpful"
agent = Agent(name="assistant", model="gemini-2.5-flash", instruction="...", tools=[load_memory])
runner = Runner(agent=agent, app_name="my_app", session_service=InMemorySessionService(), memory_service=memory)

# after a conversation (or after each turn):
await memory.add_session_to_memory(session)
Argument Default What it does
mode server's recall.mode How readily search answers: cautious checks every answer twice; helpful answers more counting, ordering and "how long between" questions and adds a worked-out result as the first memory.
limit 10 Memories per search.
store_authors ("user",) Which event authors are stored. The default stores what users said; None stores every author, including the agent's replies.

What maps to what:

ADK Recallix
user_id user (a service key acts for each user)
app_name agent id, so each app reads back what it wrote
add_session_to_memory / add_events_to_memory / add_memory store, one memory per text event, with its original time; storing a session again stores nothing twice
search_memory recall; MemoryEntry.custom_metadata carries the relevance, trust and receipt
delete_memory delete, with a deletion receipt in Recallix

Needs Recallix server 0.2.5 or newer (for mode and original timestamps).

Tests

Against a running Recallix: RECALLIX_URL=http://127.0.0.1:8000 RECALLIX_SERVICE_KEY=rx_... pytest tests.

Licence: Apache-2.0.

Metadata

Release files for recallix-adk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for recallix-adk 0.1.0
File Size Uploaded Provenance Actions
recallix_adk-0.1.0.tar.gz 5.5 kB Without provenance Details for recallix_adk-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for recallix-adk 0.1.0
File Interpreter ABI Platform Actions
recallix_adk-0.1.0-py3-none-any.whl Python 3 none any Details for recallix_adk-0.1.0-py3-none-any.whl

Total release size: 10.6 kB

Release files / recallix_adk-0.1.0.tar.gz

Download URL recallix_adk-0.1.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
318bca3ffa8680fe7d36358cce20e647593c658b9a59a26dbb9375c806916b41
BLAKE2b-256 checksum
How to use checksums
f31104267aae810089b2d6e540d6debb2f2f0cdf26d044acca25bd3d3494fb32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / recallix_adk-0.1.0-py3-none-any.whl

Download URL recallix_adk-0.1.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a25791292bcbfa2e009b3b9eae2b026c596ae9670ff88e7a07befcaca1b8880
BLAKE2b-256 checksum
How to use checksums
c4a64072fd5c79ee148a12a5dcb4b0531f84ba987889cc7cdbddf06f08fb6870
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for recallix-adk 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page