Skip to content

[ACTION] Zep - Memory APIs #17817 #17897

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

[ACTION] Zep - Memory APIs #17817 #17897

wants to merge 3 commits into from

Conversation

lcaresia
Copy link
Collaborator

@lcaresia lcaresia commented Jul 31, 2025

WHY

Summary by CodeRabbit

  • New Features
    • Introduced actions to retrieve session information, session memory, session messages, and a list of all sessions.
  • Chores
    • Updated version numbers for several actions, sources, and the package.
    • Upgraded a platform dependency to a newer version.

@lcaresia lcaresia self-assigned this Jul 31, 2025
Copy link

vercel bot commented Jul 31, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Ignored (Inspect) Visit Preview Aug 6, 2025 1:54pm
pipedream-docs ⬜️ Ignored (Inspect) Aug 6, 2025 1:54pm
pipedream-docs-redirect-do-not-edit ⬜️ Ignored (Inspect) Aug 6, 2025 1:54pm

@lcaresia lcaresia linked an issue Jul 31, 2025 that may be closed by this pull request
Copy link
Contributor

coderabbitai bot commented Jul 31, 2025

Walkthrough

This update introduces several new action modules for session and memory retrieval in the Zep component, adds supporting methods to the Zep app instance, and increments version numbers for existing actions and the package. The new modules enable fetching sessions, session details, session memory, and session messages, while minor version bumps reflect these enhancements.

Changes

Cohort / File(s) Change Summary
New Session & Memory Actions
components/zep/actions/get-session/get-session.mjs, components/zep/actions/get-sessions/get-sessions.mjs, components/zep/actions/get-session-memory/get-session-memory.mjs, components/zep/actions/get-session-messages/get-session-messages.mjs
Introduced four new action modules for retrieving sessions, session details, session memory, and session messages using Zep SDK.
New Zep App Methods
components/zep/zep.app.mjs
Added getSession and listSessionMemory methods to support new action modules.
Version Bumps (Actions)
components/zep/actions/add-memory/add-memory.mjs, components/zep/actions/add-user/add-user.mjs, components/zep/actions/create-session/create-session.mjs, components/zep/actions/update-session/update-session.mjs
Updated version property from "0.0.1" to "0.0.2" in four existing action modules.
Version Bumps (Sources)
components/zep/sources/new-message/new-message.mjs, components/zep/sources/new-session/new-session.mjs, components/zep/sources/session-updated/session-updated.mjs
Updated version property from "0.0.1" to "0.0.2" in three existing source modules.
Version Bump & Dependency Update (Package)
components/zep/package.json
Incremented package version from 0.1.0 to 0.2.0 and updated @pipedream/platform dependency version.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant ActionModule
    participant ZepApp
    participant ZepAPI

    User->>ActionModule: Trigger action (e.g., Get Session)
    ActionModule->>ZepApp: Call method (e.g., getSession({ sessionId }))
    ZepApp->>ZepAPI: HTTP request to /sessions/{sessionId}
    ZepAPI-->>ZepApp: Return session data
    ZepApp-->>ActionModule: Return session data
    ActionModule-->>User: Output result and summary
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~15 minutes

Poem

A hop and a skip, new actions appear,
Sessions and memories, all crystal clear.
With versions now bumped and methods anew,
The Zep bunny brings fresh features to you!
So nibble these updates, don’t let them hide—
For in every new method, adventure’s inside!
🐇✨

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0bdf62e and c884f75.

📒 Files selected for processing (3)
  • components/zep/sources/new-message/new-message.mjs (1 hunks)
  • components/zep/sources/new-session/new-session.mjs (1 hunks)
  • components/zep/sources/session-updated/session-updated.mjs (1 hunks)
✅ Files skipped from review due to trivial changes (3)
  • components/zep/sources/session-updated/session-updated.mjs
  • components/zep/sources/new-message/new-message.mjs
  • components/zep/sources/new-session/new-session.mjs
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: pnpm publish
  • GitHub Check: Publish TypeScript components
  • GitHub Check: Verify TypeScript components
  • GitHub Check: Lint Code Base
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch issue-zep

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
components/zep/actions/update-session/update-session.mjs (1)

41-41: Minor typo in success message.

There's a typo in the summary message: "ssession" should be "session".

-    $.export("$summary", `Successfully updated ssession with ID ${this.sessionId}`);
+    $.export("$summary", `Successfully updated session with ID ${this.sessionId}`);
components/zep/actions/get-session-memory/get-session-memory.mjs (1)

6-6: Clarify description to match method behavior.

The description states "Returns a memory" (singular) but the method name listSessionMemory suggests it returns multiple memory entries. Consider updating the description to be more precise about what is returned.

-  description: "Returns a memory for the session with the specified ID. [See the documentation](https://help.getzep.com/sdk-reference/memory/get)",
+  description: "Returns memory entries for the session with the specified ID. [See the documentation](https://help.getzep.com/sdk-reference/memory/get)",
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2138df9 and 0bdf62e.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (10)
  • components/zep/actions/add-memory/add-memory.mjs (1 hunks)
  • components/zep/actions/add-user/add-user.mjs (1 hunks)
  • components/zep/actions/create-session/create-session.mjs (1 hunks)
  • components/zep/actions/get-session-memory/get-session-memory.mjs (1 hunks)
  • components/zep/actions/get-session-messages/get-session-messages.mjs (1 hunks)
  • components/zep/actions/get-session/get-session.mjs (1 hunks)
  • components/zep/actions/get-sessions/get-sessions.mjs (1 hunks)
  • components/zep/actions/update-session/update-session.mjs (1 hunks)
  • components/zep/package.json (2 hunks)
  • components/zep/zep.app.mjs (1 hunks)
🧰 Additional context used
🧠 Learnings (4)
📓 Common learnings
Learnt from: jcortes
PR: PipedreamHQ/pipedream#14467
File: components/gainsight_px/actions/create-account/create-account.mjs:4-6
Timestamp: 2024-10-30T15:24:39.294Z
Learning: In `components/gainsight_px/actions/create-account/create-account.mjs`, the action name should be "Create Account" instead of "Create Memory".
📚 Learning: in `components/gainsight_px/actions/create-account/create-account.mjs`, the action name should be "c...
Learnt from: jcortes
PR: PipedreamHQ/pipedream#14467
File: components/gainsight_px/actions/create-account/create-account.mjs:4-6
Timestamp: 2024-10-30T15:24:39.294Z
Learning: In `components/gainsight_px/actions/create-account/create-account.mjs`, the action name should be "Create Account" instead of "Create Memory".

Applied to files:

  • components/zep/actions/add-memory/add-memory.mjs
  • components/zep/actions/create-session/create-session.mjs
  • components/zep/actions/add-user/add-user.mjs
  • components/zep/actions/get-sessions/get-sessions.mjs
  • components/zep/actions/get-session-memory/get-session-memory.mjs
📚 Learning: when developing pipedream components, do not add built-in node.js modules like `fs` to `package.json...
Learnt from: jcortes
PR: PipedreamHQ/pipedream#14935
File: components/sailpoint/package.json:15-18
Timestamp: 2024-12-12T19:23:09.039Z
Learning: When developing Pipedream components, do not add built-in Node.js modules like `fs` to `package.json` dependencies, as they are native modules provided by the Node.js runtime.

Applied to files:

  • components/zep/package.json
📚 Learning: when exporting a summary message in the `run` method of an action, ensure the message is correctly f...
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#12731
File: components/hackerone/actions/get-members/get-members.mjs:3-28
Timestamp: 2024-07-04T18:11:59.822Z
Learning: When exporting a summary message in the `run` method of an action, ensure the message is correctly formatted. For example, in the `hackerone-get-members` action, the correct format is `Successfully retrieved ${response.data.length} members`.

Applied to files:

  • components/zep/actions/get-sessions/get-sessions.mjs
  • components/zep/actions/get-session-messages/get-session-messages.mjs
  • components/zep/actions/get-session/get-session.mjs
  • components/zep/actions/get-session-memory/get-session-memory.mjs
🧬 Code Graph Analysis (4)
components/zep/actions/get-sessions/get-sessions.mjs (7)
components/zep/actions/get-session-memory/get-session-memory.mjs (1)
  • response (19-22)
components/zep/actions/create-session/create-session.mjs (1)
  • response (38-46)
components/zep/actions/add-memory/add-memory.mjs (1)
  • response (43-51)
components/zep/actions/add-user/add-user.mjs (1)
  • response (50-60)
components/zep/actions/get-session-messages/get-session-messages.mjs (1)
  • response (19-22)
components/zep/actions/get-session/get-session.mjs (1)
  • response (19-22)
components/zep/actions/update-session/update-session.mjs (1)
  • response (33-40)
components/zep/actions/get-session-messages/get-session-messages.mjs (3)
components/zep/actions/get-session-memory/get-session-memory.mjs (1)
  • response (19-22)
components/zep/actions/get-session/get-session.mjs (1)
  • response (19-22)
components/zep/actions/get-sessions/get-sessions.mjs (1)
  • response (13-15)
components/zep/actions/get-session/get-session.mjs (7)
components/zep/actions/get-session-memory/get-session-memory.mjs (1)
  • response (19-22)
components/zep/actions/create-session/create-session.mjs (1)
  • response (38-46)
components/zep/actions/add-memory/add-memory.mjs (1)
  • response (43-51)
components/zep/actions/add-user/add-user.mjs (1)
  • response (50-60)
components/zep/actions/get-session-messages/get-session-messages.mjs (1)
  • response (19-22)
components/zep/actions/update-session/update-session.mjs (1)
  • response (33-40)
components/zep/actions/get-sessions/get-sessions.mjs (1)
  • response (13-15)
components/zep/actions/get-session-memory/get-session-memory.mjs (3)
components/zep/actions/get-session-messages/get-session-messages.mjs (1)
  • response (19-22)
components/zep/actions/get-session/get-session.mjs (1)
  • response (19-22)
components/zep/actions/get-sessions/get-sessions.mjs (1)
  • response (13-15)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: Verify TypeScript components
  • GitHub Check: Publish TypeScript components
  • GitHub Check: Lint Code Base
  • GitHub Check: pnpm publish
🔇 Additional comments (11)
components/zep/zep.app.mjs (1)

123-138: LGTM! New session methods follow established patterns.

The getSession and listSessionMemory methods are well-implemented and consistent with the existing codebase architecture. They properly use parameter destructuring, follow the same request pattern as other methods, and use appropriate RESTful endpoints.

components/zep/actions/add-memory/add-memory.mjs (1)

8-8: Version bump is appropriate for coordinated release.

The version increment from "0.0.1" to "0.0.2" aligns with the package version bump and maintains consistency across all action modules in this release.

components/zep/actions/update-session/update-session.mjs (1)

8-8: Version bump is consistent with coordinated release.

The version increment from "0.0.1" to "0.0.2" maintains consistency across all action modules in this release.

components/zep/package.json (2)

3-3: Appropriate minor version bump for new features.

The version increment from 0.1.0 to 0.2.0 correctly follows semantic versioning for the addition of new session and memory retrieval functionality.


16-16: Platform dependency update aligns with new features.

The update to @pipedream/platform from ^3.0.3 to ^3.1.0 likely provides support for the new functionality being introduced.

components/zep/actions/add-user/add-user.mjs (1)

8-8: Version bump maintains consistency across action modules.

The version increment from "0.0.1" to "0.0.2" is consistent with the coordinated release strategy across all Zep action modules.

components/zep/actions/create-session/create-session.mjs (1)

8-8: LGTM! Version increment aligns with package updates.

The version bump from "0.0.1" to "0.0.2" is consistent with the coordinated updates across the Zep component.

components/zep/actions/get-sessions/get-sessions.mjs (1)

1-19: Verified listSessions response includes a sessions array
Confirmed in components/zep/zep.app.mjs that

  • listSessions(opts = {}) calls _makeRequest and returns an object with a sessions property (an array)

The summary Successfully retrieved ${response.sessions.length} sessions is therefore correct.

components/zep/actions/get-session/get-session.mjs (1)

1-26: getSession action implementation approved

The getSession method has been verified in components/zep/zep.app.mjs, and the action follows the established patterns for props, API call, and summary messaging.

components/zep/actions/get-session-messages/get-session-messages.mjs (1)

1-26: Consistent action implementation with clear messaging.

The action follows the established patterns for session-related actions and uses appropriate prop definitions. The summary message clearly indicates the operation performed.

components/zep/actions/get-session-memory/get-session-memory.mjs (1)

18-24: Confirmed listSessionMemory implementation

Found in components/zep/zep.app.mjs – it destructures sessionId (and other opts, including $) and calls this._makeRequest({ path: /sessions/${sessionId}/memory, …opts }). This matches the established pattern for other session methods, so no changes are needed.

Copy link
Collaborator

@michelle0927 michelle0927 left a comment

Choose a reason for hiding this comment

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

This is failing checks because it needs version updated for new-message, new-session, and session-updated.

Comment on lines +4 to +18
key: "zep-get-sessions",
name: "Get Sessions",
description: "Returns all sessions. [See the documentation](https://help.getzep.com/sdk-reference/memory/list-sessions)",
version: "0.0.1",
type: "action",
props: {
zep,
},
async run({ $ }) {
const response = await this.zep.listSessions({
$,
});
$.export("$summary", `Successfully retrieved ${response.sessions.length} sessions`);
return response;
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

get-sessions should return a paginated list of sessions. The prop, sessionId shows it accepts order_by and asc props. I'd include those as optional for the user, and also a maxResults prop.

Sign up for free to 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.

[ACTION] Zep - Memory APIs
2 participants