From 7b489a8beed8561ff468d819693ac2082b7ecc96 Mon Sep 17 00:00:00 2001 From: Robert Shelton Date: Tue, 3 Nov 2026 15:25:27 -0800 Subject: [PATCH] Agent Memory self-managed examples: match the 1.0.0rc1 SDKs - authentication.md: list_session_summaries_async / listSessionSummaries don't exist in redis-agent-memory 1.0.0rc1. Use list_sessions_async(owner_id=...) and listSessions. - api-examples.md: extractor source and strategy are upper-case enums (DOCUMENTS, CUSTOM), as the curl tab already sends. Co-Authored-By: Claude Opus 5.5 --- .../operate/iris/agent-memory/self-managed/api-examples.md | 4 ++-- .../iris/agent-memory/self-managed/authentication.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/content/operate/iris/agent-memory/self-managed/api-examples.md b/content/operate/iris/agent-memory/self-managed/api-examples.md index 72e3f88c04..85de791692 100644 --- a/content/operate/iris/agent-memory/self-managed/api-examples.md +++ b/content/operate/iris/agent-memory/self-managed/api-examples.md @@ -258,7 +258,7 @@ async def main(): extractor = await service.create_extractor_async( store_id=os.environ["STORE_ID"], name="Travel guide facts", memory_type="document_fact", - source="documents", strategy="custom", + source="DOCUMENTS", strategy="CUSTOM", prompt="Extract useful travel facts. Keep each fact in one memory.", ) print(extractor.model_dump_json(by_alias=True)) @@ -282,7 +282,7 @@ async function main() { }); console.dir(await service.createExtractor(STORE_ID, { name: "Travel guide facts", memoryType: "document_fact", - source: "documents", strategy: "custom", + source: "DOCUMENTS", strategy: "CUSTOM", prompt: "Extract useful travel facts. Keep each fact in one memory.", }), { depth: null }); } diff --git a/content/operate/iris/agent-memory/self-managed/authentication.md b/content/operate/iris/agent-memory/self-managed/authentication.md index 4d261b2f15..cce4f06c96 100644 --- a/content/operate/iris/agent-memory/self-managed/authentication.md +++ b/content/operate/iris/agent-memory/self-managed/authentication.md @@ -242,8 +242,8 @@ async def main(): api_key=os.environ["API_KEY"], async_client=transport, ) as memory: - page = await memory.list_session_summaries_async( - filter_owner_id=os.environ["OWNER_ID"], limit=20, + page = await memory.list_sessions_async( + owner_id=os.environ["OWNER_ID"], limit=20, ) print(page.model_dump_json(by_alias=True)) @@ -270,7 +270,7 @@ async function main() { const memory = new AgentMemory({ serverURL: AGENT_MEMORY_URL, storeId: STORE_ID, apiKey: API_KEY, httpClient, }); - console.dir(await memory.listSessionSummaries(20, undefined, OWNER_ID), { depth: null }); + console.dir(await memory.listSessions(20, undefined, OWNER_ID), { depth: null }); } main().catch((error) => { console.error(error instanceof Error ? error.message : "Request failed"); process.exitCode = 1; });