Skip to main content

recallic-adk: Recallic memory for Google ADK agents

Formerly recallix-adk (0.1.x); renamed with the project, nothing else changed.

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

  • No LLM calls for memory. Storing and searching use Recallic's local models; your agent's model is the only one you pay for.
  • Honest search. When Recallic 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 recallic-adk          # brings google-adk and the recallic SDK

Run Recallic (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 recallic_adk import RecallicMemoryService

memory = RecallicMemoryService(api_key=os.environ["RECALLIC_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 Recallic
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 Recallic

Needs Recallic 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 Recallic: RECALLIC_URL=http://127.0.0.1:8000 RECALLIC_SERVICE_KEY=rx_... pytest tests.

Licence: Apache-2.0.

Metadata

Release files for recallic-adk 0.2.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 recallic-adk 0.2.0
File Size Uploaded Provenance Actions
recallic_adk-0.2.0.tar.gz 5.6 kB Without provenance Details for recallic_adk-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for recallic-adk 0.2.0
File Interpreter ABI Platform Actions
recallic_adk-0.2.0-py3-none-any.whl Python 3 none any Details for recallic_adk-0.2.0-py3-none-any.whl

Total release size: 10.9 kB

Release files / recallic_adk-0.2.0.tar.gz

Download URL recallic_adk-0.2.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
55a9eb33c3e2f0390daf78409b1e363563cdbc51c39b9df521300ff06381bb26
BLAKE2b-256 checksum
How to use checksums
29e9077db9b135102a6a84bf1418aca7c8cd5bae670f6a2d571bb7015e751bb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / recallic_adk-0.2.0-py3-none-any.whl

Download URL recallic_adk-0.2.0-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74f3a7229fdd7620633a1e832ba33942ac1394a8cb1646d9fc5251bc995794f7
BLAKE2b-256 checksum
How to use checksums
220e66ea860f8ac6504996160e17421a8d290bbfb8662035fc8fe16a3947f7b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for recallic-adk 0.2.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.2.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