Skip to content

Commit 193e383

Browse files
abrookinsclaude
andcommitted
Format code after pre-commit hooks
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent e6e4d9b commit 193e383

File tree

7 files changed

+21
-54
lines changed

7 files changed

+21
-54
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,3 +233,4 @@ libs/redis/docs/.Trash*
233233
*.pyc
234234
.ai
235235
.claude
236+
TASK_MEMORY.md

TASK_MEMORY.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

docs/agent-examples.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ A comprehensive travel assistant that demonstrates the most complete integration
2121
The travel agent automatically discovers and uses all memory tools:
2222

2323
1. **search_memory** - Search through previous conversations and stored information
24-
2. **get_or_create_working_memory** - Check current session state, stored memories, and data
25-
3. **add_memory_to_working_memory** - Store important information as structured memories
24+
2. **get_or_create_working_memory** - Check current working memory session
25+
3. **lazily_create_long_term_memory** - Store important information as structured memories lazily
2626
4. **update_working_memory_data** - Store/update session-specific data like trip plans
2727
5. **web_search** (optional) - Search the internet for current travel information
2828

@@ -132,10 +132,10 @@ Demonstrates comprehensive memory editing capabilities through natural conversat
132132

133133
1. **search_memory** - Find existing memories using natural language
134134
2. **get_long_term_memory** - Retrieve specific memories by ID
135-
3. **add_memory_to_working_memory** - Store new information
135+
3. **lazily_create_long_term_memory** - Store new information lazily
136136
4. **edit_long_term_memory** - Update existing memories
137137
5. **delete_long_term_memories** - Remove outdated information
138-
6. **get_or_create_working_memory** - Check current session context
138+
6. **get_or_create_working_memory** - Check current working memory session
139139

140140
### Common Editing Scenarios
141141

docs/mcp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Agent Memory Server offers an MCP (Model Context Protocol) server interface powe
88
- **edit_long_term_memory**: Update existing long-term memories with new or corrected information. Allows partial updates to specific fields while preserving other data.
99
- **delete_long_term_memories**: Remove specific long-term memories by ID. Useful for cleaning up outdated or incorrect information.
1010
- **get_long_term_memory**: Retrieve specific memories by ID for detailed inspection or verification before editing.
11-
- **memory_prompt**: Generate prompts enriched with session context and long-term memories. Essential for retrieving relevant context before answering questions.
11+
- **memory_prompt**: Generate prompts enriched with working memory session and long-term memories. Essential for retrieving relevant context before answering questions.
1212

1313
## Available MCP Tools
1414

docs/memory-integration-patterns.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -721,10 +721,6 @@ class SmartChatAgent:
721721
)
722722

723723
# Background: Also store conversation for automatic extraction
724-
# First ensure working memory session exists
725-
result = await self.memory_client.get_or_create_working_memory(session_id)
726-
working_memory = result.memory
727-
728724
await self.memory_client.set_working_memory(
729725
session_id,
730726
WorkingMemory(

docs/python-sdk.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,17 @@ async def chat_with_memory(message: str, session_id: str):
214214

215215
The SDK provides these tools for LLM integration:
216216

217-
1. **`create_long_term_memories`** - Store persistent memories
218-
2. **`search_long_term_memory`** - Search with semantic similarity
219-
3. **`edit_memory`** - Update existing memories
220-
4. **`delete_memory`** - Remove memories
221-
5. **`set_working_memory`** - Manage session memory
222-
6. **`get_or_create_working_memory`** - Retrieve or create session context
217+
1. **`eagerly_create_long_term_memory`** - Eagerly create a long-term memory by making an API request
218+
2. **`lazily_create_long_term_memory`** - Lazily create a long-term memory by adding it to working memory (does not require an immediate network request; does require saving working memory afterward)
219+
3. **`search_long_term_memory`** - Search with semantic similarity
220+
4. **`edit_memory`** - Update existing memories
221+
5. **`delete_memory`** - Remove memories
222+
6. **`set_working_memory`** - Update or create a working memory session
223+
7. **`get_or_create_working_memory`** - Retrieve or create a working memory session
224+
225+
**Note:** The following tool names have been deprecated for clarity:
226+
- `create_long_term_memories` (deprecated) → use `eagerly_create_long_term_memory`
227+
- `add_memory_to_working_memory` (deprecated) → use `lazily_create_long_term_memory`
223228

224229
## Memory Operations
225230

examples/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ A comprehensive travel assistant that demonstrates:
1717
The travel agent automatically discovers and uses all memory tools available from the client:
1818

1919
1. **search_memory** - Search through previous conversations and stored information
20-
2. **get_or_create_working_memory** - Check current session state, stored memories, and data
21-
3. **add_memory_to_working_memory** - Store important information as structured memories
20+
2. **get_or_create_working_memory** - Check current working memory session
21+
3. **lazily_create_long_term_memory** - Lazily create a long-term memory by adding it to working memory (does not require an immediate network request; does require saving working memory afterward)
2222
4. **update_working_memory_data** - Store/update session-specific data like trip plans
2323

2424
Plus optional:
@@ -103,10 +103,10 @@ The memory editing agent uses all memory tools to demonstrate comprehensive memo
103103

104104
1. **search_memory** - Find existing memories using natural language queries
105105
2. **get_long_term_memory** - Retrieve specific memories by ID for detailed review
106-
3. **add_memory_to_working_memory** - Store new important information as structured memories
106+
3. **lazily_create_long_term_memory** - Lazily create a long-term memory by adding it to working memory (does not require an immediate network request; does require saving working memory afterward)
107107
4. **edit_long_term_memory** - Update existing memories with corrections or new information
108108
5. **delete_long_term_memories** - Remove memories that are no longer relevant or accurate
109-
6. **get_or_create_working_memory** - Check current session context and stored memories
109+
6. **get_or_create_working_memory** - Check current working memory session
110110
7. **update_working_memory_data** - Store session-specific data
111111

112112
### Common Memory Editing Scenarios

0 commit comments

Comments
 (0)