Skip to content

MemoryTool

autogen.beta.tools.builtin.memory.MemoryTool #

Bases: Tool

Memory tool that enables Claude to store and retrieve information across conversations.

Claude can create, read, update, and delete files in the /memories directory to store what it learns while working, then reference those memories in future conversations.

This is a client-side tool: the application is responsible for implementing the handlers for each memory command (view, create, str_replace, insert, delete, rename).

See: https://platform.claude.com/docs/en/agents-and-tools/tool-use/memory-tool

schemas async #

schemas(context)
Source code in autogen/beta/tools/builtin/memory.py
async def schemas(self, context: "Context") -> list[ToolSchema]:
    return [MemoryToolSchema()]

register #

register(stack, context, *, middleware=())
Source code in autogen/beta/tools/builtin/memory.py
def register(
    self,
    stack: "ExitStack",
    context: "Context",
    *,
    middleware: Iterable["BaseMiddleware"] = (),
) -> None:
    pass