Skip to content

Mem0 compactiable client - #11

Merged
HQidea merged 6 commits into
powerdrillai:mainfrom
HQidea:main
Jan 22, 2026
Merged

Mem0 compactiable client#11
HQidea merged 6 commits into
powerdrillai:mainfrom
HQidea:main

Conversation

@HQidea

@HQidea HQidea commented Jan 20, 2026

Copy link
Copy Markdown
Collaborator

Motivation

This integration adds full Mem0 API client support with both synchronous and asynchronous operations.

Modifications

  • Add complete Mem0 client implementation with sync/async support for memory operations (add, get, search, update, delete).
  • Implement structured exception handling with specific error types, codes, and user-friendly suggestions.
  • Add project management capabilities including member management, settings, and configuration.
  • Implement memory reflection system for users and locations with session tracking.
  • Add webhook management for real-time memory events and notifications.
  • Include comprehensive utility functions for API error handling and type safety.
  • Add telemetry and setup modules for user identification and event tracking.
  • Update dependencies to support new memory management features (httpx, pydantic, typeguard).
  • Add dist/ directory to gitignore for build artifacts.

@codecov

codecov Bot commented Jan 20, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 863 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
memorylake/mem0/client/main.py 0.00% 561 Missing ⚠️
memorylake/mem0/client/project.py 0.00% 185 Missing ⚠️
memorylake/mem0/exceptions.py 0.00% 59 Missing ⚠️
memorylake/mem0/client/utils.py 0.00% 56 Missing ⚠️
memorylake/mem0/__init__.py 0.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

)

@api_error_handler
def end_session(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

end_chat_session

return response.json()

def prepare_params(self, kwargs: Optional[dict[str, Any]] = None) -> dict[str, Any]:
return self._prepare_params(kwargs)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why is this wrapper function necessary?

)

@api_error_handler
async def end_session(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

ditto

@@ -0,0 +1,57 @@
import json

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is the whole setup.py file necessary?
Wo do NOT support local memory client.

pass


def api_error_handler(func: Callable[..., Any]) -> Callable[..., Any]:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Seems this does not work for async def

@HQidea
HQidea merged commit 1e723b1 into powerdrillai:main Jan 22, 2026
7 checks passed
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.

2 participants