Skip to content
Open
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
9 changes: 5 additions & 4 deletions src/strands_tools/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ def format_retrieve_response(self, response: Dict, min_score: float = 0.0) -> Li

result_text += f"\n\nScore: {score:.4f}"
result_text += f"\nDocument ID: {doc_id}"
result_text += f"content_text: {text}"

# Try to parse content as JSON for better display
try:
Expand All @@ -506,10 +507,10 @@ def format_retrieve_response(self, response: Dict, min_score: float = 0.0) -> Li
pass

# Add content preview
preview = text[:150]
if len(text) > 150:
preview += "..."
result_text += f"\nContent Preview: {preview}"
# preview = text[:150]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i believe we can remove this preview completely instead of commenting here ^^

# if len(text) > 150:
# preview += "..."
# result_text += f"\nContent Preview: {preview}"

content.append({"text": result_text})

Expand Down