Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/strands_tools/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,23 @@
agent = Agent(tools=[memory])

# Store content in Knowledge Base
agent.memory(
agent.tool.memory(
action="store",
content="Important information to remember",
title="Meeting Notes",
STRANDS_KNOWLEDGE_BASE_ID="my1234kb"
)

# Retrieve content using semantic search
agent.memory(
agent.tool.memory(
action="retrieve",
query="meeting information",
min_score=0.7,
STRANDS_KNOWLEDGE_BASE_ID="my1234kb"
)

# List all documents
agent.memory(
agent.tool.memory(
action="list",
max_results=50,
STRANDS_KNOWLEDGE_BASE_ID="my1234kb"
Expand Down