Commit Graph

13 Commits

Author SHA1 Message Date
ARIA 2f98f63ecd Fix code review issues
- Add agent_id parameter to client.add() and use it in mem0_conclude
- Fix inconsistent field access in queue_prefetch_and_get (check both text and memory)
- Remove unused _read_filters() and _write_filters() methods
- Mark prefetch() query parameter as deprecated (was unused)
2026-04-10 13:45:34 +02:00
ARIA cf09a3534d Add pre_llm_call hook to inject memory context before LLM
- Register pre_llm_call hook that searches memories and injects context
- Add queue_prefetch_and_get() for synchronous prefetch in hook
- Memory now available to AI without tool calls
2026-04-10 13:39:26 +02:00
ARIA 6e7c6dd3ce Refactor client API based on OpenAPI spec and add mem0_delete tool
- Update client.py to use correct API endpoints from OpenAPI spec
- Add delete() method for memory deletion
- Add mem0_delete tool with schema and handler
- Simplify API calls to match actual Mem0 OSS server format
2026-04-10 13:24:14 +02:00
ARIA fdd2a07ae5 Fix: Use 'message' (singular string) instead of 'messages' array 2026-04-10 13:20:33 +02:00
ARIA 69715b29df Fix: Use /add endpoint for adding memories (not /memories) 2026-04-10 13:18:58 +02:00
ARIA 68d20fff75 Fix: Lazy config loading in _get_client() for tool calls before initialize() 2026-04-10 13:16:52 +02:00
ARIA 98bada59ef Fix: Handler must accept **kwargs for task_id and other params 2026-04-10 13:15:26 +02:00
ARIA 06254a52ed Update README with Gitea URL and troubleshooting section 2026-04-10 13:10:00 +02:00
ARIA 82d5f6cf92 Use ctx.register_tool() for proper plugin tracking in general plugin context 2026-04-10 13:09:23 +02:00
ARIA 73f7b98fcf Fix: Support both memory provider and general plugin contexts
- Check for register_memory_provider() before calling it
- Fall back to direct tool registration in general plugin context
- Use proper closure to avoid late binding issues with tool names
2026-04-10 13:07:56 +02:00
ARIA 7dc7e03280 Fix indentation and linting issues
- Fixed tab/space inconsistencies in client.py and __init__.py
- Renamed ambiguous variable 'l' to 'line'
- All ruff checks now passing
2026-04-10 13:03:49 +02:00
ARIA ece2cd02f0 Fix indentation error in __init__.py 2026-04-10 13:01:29 +02:00
ARIA 3a141d9180 Initial release: Mem0 local server memory provider for Hermes-Agent
- Self-hosted Mem0 integration (no cloud dependency)
- Async prefetch with ~40ms latency
- Automatic context injection via pre_llm_call hook
- Circuit breaker for server resilience
- Full tool support: profile, search, conclude
2026-04-10 12:53:15 +02:00