Skip to content

Commit ea5debe

Browse files
author
Mike Wrighton
committed
Update documentation
1 parent bc9d040 commit ea5debe

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

documentation/docs/examples/semantic_search.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,11 @@ print("Waiting 2 minutes for semantic processing...")
7575
time.sleep(120)
7676

7777
# List all memory records
78-
memory_records = session_manager.list_memory_records(
79-
memoryId=memory.get("id"),
80-
namespace="/"
78+
memory_records = session_manager.list_long_term_memory_records(
79+
namespace_prefix="/"
8180
)
8281

83-
for record in memory_records.get("memoryRecordSummaries", []):
82+
for record in memory_records:
8483
print(f"Memory record: {record}")
8584
print("--------------------------------------------------------------------")
8685

documentation/docs/user-guide/memory/quickstart.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,8 @@ You can list all memory records with:
135135

136136
```python
137137
# List all memory records
138-
memory_records = session_manager.list_memory_records(
139-
memoryId=memory.get("id"),
140-
namespace="/"
138+
session_manager.list_long_term_memory_records(
139+
namespace_prefix="/"
141140
)
142141
```
143142

0 commit comments

Comments
 (0)