Sim

Zep

Long-term memory for AI agents

Usage Instructions

Integrate Zep for long-term memory management. Create threads, add messages, retrieve context with AI-powered summaries and facts extraction.

Tools

zep_create_thread

Start a new conversation thread in Zep

Input

ParameterTypeRequiredDescription
threadIdstringYesUnique identifier for the thread
userIdstringYesUser ID associated with the thread
apiKeystringYesYour Zep API key

Output

ParameterTypeDescription
threadIdstringThe thread ID
userIdstringThe user ID
uuidstringInternal UUID
createdAtstringCreation timestamp
projectUuidstringProject UUID

zep_get_threads

List all conversation threads

Input

ParameterTypeRequiredDescription
pageSizenumberNoNumber of threads to retrieve per page
pageNumbernumberNoPage number for pagination
orderBystringNoField to order results by (created_at, updated_at, user_id, thread_id)
ascbooleanNoOrder direction: true for ascending, false for descending
apiKeystringYesYour Zep API key

Output

ParameterTypeDescription
threadsarrayArray of thread objects
responseCountnumberNumber of threads in this response
totalCountnumberTotal number of threads available

zep_delete_thread

Delete a conversation thread from Zep

Input

ParameterTypeRequiredDescription
threadIdstringYesThread ID to delete
apiKeystringYesYour Zep API key

Output

ParameterTypeDescription
deletedbooleanWhether the thread was deleted

zep_get_context

Retrieve user context from a thread with summary or basic mode

Input

ParameterTypeRequiredDescription
threadIdstringYesThread ID to get context from
modestringNoContext mode: "summary" (natural language) or "basic" (raw facts)
minRatingnumberNoMinimum rating by which to filter relevant facts
apiKeystringYesYour Zep API key

Output

ParameterTypeDescription
contextstringThe context string (summary or basic)
factsarrayExtracted facts
entitiesarrayExtracted entities
summarystringConversation summary

zep_get_messages

Retrieve messages from a thread

Input

ParameterTypeRequiredDescription
threadIdstringYesThread ID to get messages from
limitnumberNoMaximum number of messages to return
cursorstringNoCursor for pagination
lastnnumberNoNumber of most recent messages to return (overrides limit and cursor)
apiKeystringYesYour Zep API key

Output

ParameterTypeDescription
messagesarrayArray of message objects
rowCountnumberNumber of messages in this response
totalCountnumberTotal number of messages in the thread

zep_add_messages

Add messages to an existing thread

Input

ParameterTypeRequiredDescription
threadIdstringYesThread ID to add messages to
messagesjsonYesArray of message objects with role and content
apiKeystringYesYour Zep API key

Output

ParameterTypeDescription
contextstringUpdated context after adding messages
messageIdsarrayArray of added message UUIDs
threadIdstringThe thread ID

zep_add_user

Create a new user in Zep

Input

ParameterTypeRequiredDescription
userIdstringYesUnique identifier for the user
emailstringNoUser email address
firstNamestringNoUser first name
lastNamestringNoUser last name
metadatajsonNoAdditional metadata as JSON object
apiKeystringYesYour Zep API key

Output

ParameterTypeDescription
userIdstringThe user ID
emailstringUser email
firstNamestringUser first name
lastNamestringUser last name
uuidstringInternal UUID
createdAtstringCreation timestamp
metadataobjectUser metadata

zep_get_user

Retrieve user information from Zep

Input

ParameterTypeRequiredDescription
userIdstringYesUser ID to retrieve
apiKeystringYesYour Zep API key

Output

ParameterTypeDescription
userIdstringThe user ID
emailstringUser email
firstNamestringUser first name
lastNamestringUser last name
uuidstringInternal UUID
createdAtstringCreation timestamp
updatedAtstringLast update timestamp
metadataobjectUser metadata

zep_get_user_threads

List all conversation threads for a specific user

Input

ParameterTypeRequiredDescription
userIdstringYesUser ID to get threads for
limitnumberNoMaximum number of threads to return
apiKeystringYesYour Zep API key

Output

ParameterTypeDescription
threadsarrayArray of thread objects for this user
userIdstringThe user ID

Notes

  • Category: tools
  • Type: zep
Zep