mountable.io
By mountable.io · Community examples
  • pydantic-ai
  • mem0
  • agents
  • filesystem

A Pydantic AI Note the Next Run Can Read

mountable.io is a persistent filesystem for these community recipes. A Pydantic AI tool stores a note a later run can read, and a Mem0 export writes one user's records to a new JSON file.

A Pydantic AI run writes a summary. Then the worker stops.

The next run does not have that summary.

mountable.io is a persistent filesystem for AI agents. The note is a file on that filesystem.

The tools write a file

Your application picks the filesystem. The model only picks a Markdown filename and the text. create_note does not overwrite an existing note.

A later process reads the same file.

A file of Mem0 records

The Mem0 recipe reads one user's returned records and writes one new JSON file. A later worker reads that file.

This sits next to Mem0. It does not replace Mem0's storage.

Run it

The guide covers the account, the key and the filesystem. From the example:

import os
 
from mountable_sdk import Mountable
from pydantic_workspace import build_agent
 
with Mountable() as client:
    fs = client.filesystem(os.environ["MOUNTABLE_FILESYSTEM_ID"])
    result = build_agent(os.environ["PYDANTIC_AI_MODEL"]).run_sync(
        "Create summary.md about this task.",
        deps=fs,
    )
    print(result.output)
MEM0_TELEMETRY=false uv run mem0_snapshot.py

mountable.io maintains these community recipes. They are not Pydantic AI or Mem0 packages. They use your existing mountable.io account.