Search Archival Memory
Deprecated
agents.passages.search(stragent_id, PassageSearchParams**kwargs) -> PassageSearchResponse
/v1/agents/{agent_id}/archival-memory/search
Search archival memory using semantic (embedding-based) search with optional temporal filtering.
This endpoint allows manual triggering of archival memory searches, enabling users to query an agent's archival memory store directly via the API. The search uses the same functionality as the agent's archival_memory_search tool but is accessible for external API usage.
Parameters
Returns
Search Archival Memory
from letta_client import Letta
client = Letta(
api_key="My API Key",
)
response = client.agents.passages.search(
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
query="query",
)
print(response.count)
{
"count": 0,
"results": [
{
"content": "content",
"timestamp": "timestamp",
"tags": [
"string"
]
}
]
}Returns Examples
{
"count": 0,
"results": [
{
"content": "content",
"timestamp": "timestamp",
"tags": [
"string"
]
}
]
}