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). A session is stored in one request per 100 events on server 0.2.6 or newer, and one request per event before that.

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.1

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.1
File Size Uploaded Provenance Actions
recallix_adk-0.1.1.tar.gz 5.6 kB Without provenance Details for recallix_adk-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 10.8 kB

Release files / recallix_adk-0.1.1.tar.gz

Download URL recallix_adk-0.1.1.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f4ab66e4a12e9d12c424087622d5d7b251b81980954329a609b5e7a06583ece3
BLAKE2b-256 checksum
How to use checksums
00810d7e2921e651b14ed51f79e9bcd7887175c6d40d508325840d685753699f
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.1-py3-none-any.whl

Download URL recallix_adk-0.1.1-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9089fa7414c3ff2a1762b092aa272802e720ce4f7c7cb872330b95c1c991561b
BLAKE2b-256 checksum
How to use checksums
321b0fea7fd26458b471f0ba42788594367e736a5be04a024fefd95b76cbd851
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.1

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.1 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