agentskit.js

fileChatMemory

Auto-generated API reference for fileChatMemory.

Function: fileChatMemory()

fileChatMemory(path): ChatMemory

Defined in: file-chat.ts:13

ChatMemory backed by a JSON file on disk. Node-only.

Implements the Memory contract (ADR 0003):

  • load() returns a snapshot (CM1)
  • save() is replace-all, not append (CM2)
  • empty state returns [] (CM5)
  • clear() is optional but provided here

#Parameters

#path

string

#Returns

ChatMemory

Explore nearby

✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page