Skip to main content

Google ADK integration for the Progress Memory SDK

Project description

progress-memory-google-adk

Google ADK integration for the Progress Memory SDK.

Implements BaseMemoryService so that ADK agents automatically recall and save memories through Progress Memory — no manual wiring required.

Quick start

from google.adk.agents import LlmAgent
from google.adk.runners import Runner
from google.adk.sessions import InMemorySessionService
from google.adk.tools import load_memory
from google.genai.types import Content, Part
from progress_memory import ProgressMemoryClient, ProgressMemoryConfig
from progress_memory_google_adk import ProgressMemoryADKService

config = ProgressMemoryConfig.from_env()

async with ProgressMemoryClient(config) as memory_client:
    memory_service = ProgressMemoryADKService(
        client=memory_client, agent_id="my-agent"
    )

    agent = LlmAgent(
        name="assistant",
        model="gemini-2.0-flash",
        instruction="You are helpful.",
        tools=[load_memory],
        after_agent_callback=memory_service.after_agent_callback,
    )

    runner = Runner(
        agent=agent,
        app_name="my_app",
        session_service=InMemorySessionService(),
        memory_service=memory_service,
    )

How it works

  1. User sends a message via runner.run_async().
  2. Agent calls the built-in load_memory tool → search_memory() is invoked.
  3. Agent processes memories and responds.
  4. after_agent_callback fires → add_events_to_memory() saves only the new event delta for this turn.

Important: reuse the same session across turns; the service tracks per-session offsets so only new events are sent to Progress Memory on each save.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

progress_memory_google_adk-0.1.0.tar.gz (106.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

progress_memory_google_adk-0.1.0-py3-none-any.whl (32.0 kB view details)

Uploaded Python 3

File details

Details for the file progress_memory_google_adk-0.1.0.tar.gz.

File metadata

File hashes

Hashes for progress_memory_google_adk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e65b420fd92cd4a0d7c88b38b2ef7e813df5b1ac798c065c4cde4cc5ffec2b74
MD5 4495a018b63c14c4d314e5b858175e5b
BLAKE2b-256 c442a0e8a7ae0224038cb85184e0790df9bd21c97172e3e0b8f8c72982067baa

See more details on using hashes here.

Provenance

The following attestation bundles were made for progress_memory_google_adk-0.1.0.tar.gz:

Publisher: publish-memory-python.yaml on telerik/AgentClarity

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file progress_memory_google_adk-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for progress_memory_google_adk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 659aa16a713049687922963f6774feb5588282e7a62b422d35547adbf73e9976
MD5 8f64aa243fcd6417f833349ddfd89e56
BLAKE2b-256 ca4dae8b80a8635732dc75c9ff7ae4f0b757e27e16eaa5c7d37c1b17c9044018

See more details on using hashes here.

Provenance

The following attestation bundles were made for progress_memory_google_adk-0.1.0-py3-none-any.whl:

Publisher: publish-memory-python.yaml on telerik/AgentClarity

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page