Skip to content

feat(zep): add tools from Zep - #1646

Merged
icecrasher321 merged 3 commits into
stagingfrom
feat/zep
Oct 15, 2025
Merged

feat(zep): add tools from Zep#1646
icecrasher321 merged 3 commits into
stagingfrom
feat/zep

Conversation

@icecrasher321

@icecrasher321icecrasher321 commented Oct 15, 2025

Copy link
Copy Markdown
Collaborator

Summary

Add relevant tools for user and thread management for Zep -- https://www.getzep.com/

Type of Change

  • New feature

Testing

Tested all tools manually.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercelBot commented Oct 15, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
ProjectDeploymentPreviewCommentsUpdated (UTC)
docsSkippedSkippedOct 15, 2025 10:47pm

@greptile-appsgreptile-appsBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Greptile Overview

Summary

This PR adds comprehensive Zep integration for long-term memory management in AI agents. The implementation includes 9 tools covering thread management (create, get, delete), message operations (add, retrieve), user management (add, get, retrieve threads), and context retrieval with AI-powered summaries.

Key Changes:

  • Added 9 Zep tool implementations with proper API v2 integration
  • Created unified block configuration with operation-based routing
  • Comprehensive documentation with input/output specifications
  • Proper type definitions and error handling
  • Integration with existing registry and block systems

Issues Found:

  • Critical syntax error in add_messages.ts:66 - accessing undefined params._threadId instead of params.threadId, which will cause runtime failures when adding messages

Confidence Score: 2/5

  • This PR has a critical syntax error that will cause runtime failures
  • Score reflects one critical syntax error in add_messages.ts that accesses an undefined property (params._threadId instead of params.threadId). This will cause the add messages functionality to fail at runtime. The rest of the implementation is well-structured with proper validation, error handling, and documentation. Once the syntax error is fixed, this would be a high-confidence merge.
  • Pay close attention to apps/sim/tools/zep/add_messages.ts - fix the syntax error on line 66 before merging

Important Files Changed

File Analysis

FilenameScoreOverview
apps/sim/tools/zep/add_messages.ts2/5Syntax error on line 66 accessing undefined property params._threadId
apps/sim/blocks/blocks/zep.ts5/5Comprehensive block configuration with proper validation and operation routing
apps/sim/tools/zep/types.ts5/5Well-structured type definitions covering all response variations
apps/sim/tools/registry.ts5/5All 9 Zep tools properly registered
apps/docs/content/docs/en/tools/zep.mdx5/5Complete documentation for all 9 Zep tools with input/output specifications

Sequence Diagram

sequenceDiagram
participant User
participant SimBlock as Zep Block
participant Tool as Zep Tool
participant ZepAPI as Zep API
User->>SimBlock: Select operation & provide params
SimBlock->>SimBlock: Validate inputs
SimBlock->>Tool: Route to specific tool
alt Create Thread
Tool->>ZepAPI: POST /api/v2/threads
ZepAPI-->>Tool: Thread created (threadId, uuid)
Tool-->>SimBlock: Return thread details
else Add Messages
Tool->>ZepAPI: POST /api/v2/threads/{threadId}/messages
ZepAPI-->>Tool: Context + message UUIDs
Tool-->>SimBlock: Return context & messageIds
else Get Context
Tool->>ZepAPI: GET /api/v2/threads/{threadId}/context
ZepAPI-->>Tool: Context, facts, entities, summary
Tool-->>SimBlock: Return enriched context
else Get Messages
Tool->>ZepAPI: GET /api/v2/threads/{threadId}/messages
ZepAPI-->>Tool: Messages array with pagination
Tool-->>SimBlock: Return messages
else Add User
Tool->>ZepAPI: POST /api/v2/users
ZepAPI-->>Tool: User profile created
Tool-->>SimBlock: Return user details
else Get User
Tool->>ZepAPI: GET /api/v2/users/{userId}
ZepAPI-->>Tool: User profile
Tool-->>SimBlock: Return user profile
end
SimBlock-->>User: Display results
Loading

20 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Comment threadapps/sim/tools/zep/add_messages.ts Outdated
@icecrasher321
icecrasher321 merged commit 56d04a9 into stagingOct 15, 2025
9 checks passed
@waleedlatif1
waleedlatif1 deleted the feat/zep branch October 30, 2025 06:22
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@icecrasher321