{"id":47706107,"url":"https://github.com/oceanbase/dify-plugin-powermem","last_synced_at":"2026-04-02T17:58:27.369Z","repository":{"id":329095330,"uuid":"1112980029","full_name":"oceanbase/dify-plugin-powermem","owner":"oceanbase","description":"Dify plugin for powermem","archived":false,"fork":false,"pushed_at":"2025-12-17T09:06:09.000Z","size":35,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-20T21:58:22.387Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oceanbase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-09T11:06:45.000Z","updated_at":"2025-12-17T12:36:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/oceanbase/dify-plugin-powermem","commit_stats":null,"previous_names":["oceanbase/dify-plugin-powermem"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/oceanbase/dify-plugin-powermem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oceanbase%2Fdify-plugin-powermem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oceanbase%2Fdify-plugin-powermem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oceanbase%2Fdify-plugin-powermem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oceanbase%2Fdify-plugin-powermem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oceanbase","download_url":"https://codeload.github.com/oceanbase/dify-plugin-powermem/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oceanbase%2Fdify-plugin-powermem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31312744,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-02T17:58:26.490Z","updated_at":"2026-04-02T17:58:27.361Z","avatar_url":"https://github.com/oceanbase.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## PowerMem [![PowerMem](https://img.shields.io/badge/PowerMem-blue)](https://www.powermem.ai/)\n\n**Author:** oceanbase  \n**Version:** 0.0.3  \n**Type:** tool  \n\n### Description\n- Dify plugin wrapping PowerMem SDK (sync tools) for workflows and agent strategies.\n- Tools: add_memory / search_memories / update_memory / delete_all_memories / list_memories / get_profile / list_profiles / delete_profile.\n- Outputs JSON (status/results/relations etc. directly from SDK) + text; timestamps are ISO strings.\n\n### Tools Introduction\n1. **add_memory**: add or intelligently merge; messages (str/JSON list/dict), user_id/agent_id/run_id, metadata (JSON string), infer (default true). When User Profile is enabled, user_id is required; text output will show user_id and profile summary.  \n2. **search_memories**: vector/hybrid search; query, user_id/agent_id/run_id, limit, threshold, filters (JSON string), add_profile (bool; requires user_id to return profile).  \n3. **update_memory**: update by memory_id with content/metadata.  \n4. **delete_all_memories**: delete all by user_id/agent_id/run_id scope.  \n5. **list_memories**: list memories; filters (JSON string), limit/offset, user_id/agent_id/run_id.  \n6. **get_profile**: get user profile by user_id (requires User Profile enabled and OceanBase).  \n7. **list_profiles**: list user profiles with topic filters (requires User Profile enabled and OceanBase).  \n8. **delete_profile**: delete user profile by user_id (requires User Profile enabled and OceanBase).  \n\n### Usage Instructions\n1. Credentials: llm_provider (qwen/openai/siliconflow/deepseek; default qwen), llm_api_key, llm_model (default qwen-plus); embedder_provider (qwen/openai; default qwen), embedder_api_key, embedder_model (default text-embedding-v4), embedder_dims (default 1536); db_provider (default sqlite).  \n2. If using oceanbase, fill host/port/user/password/database, optionally graph_store_enabled (graph, OceanBase only) and user_profile_enabled (User Profile, OceanBase only).\n\n### Agent System Prompt Template\nCopy and use the following as the Agent **system prompt** (edit as needed):\n\n```text\nYou are a conversational assistant. Use tools flexibly to manage memories and build a user profile.\nUser Profile feature is enabled (user_profile_enabled=true) and the database is OceanBase (db_provider=oceanbase).\n{{user_id}} is the user's user_id.\nPrefer using the add_memory tool to record/store memories.\n\nTool usage rules:\n- add_memory: Record/store long-term memories. Prefer passing `messages` as plain text (the SDK will normalize it). Only use OpenAI-style JSON (`{\"role\",\"content\"}` or a list of them) when you need multi-turn context or explicit roles. Prefer `infer=true` by default; only use `infer=false` when the user explicitly asks for deterministic \"store as-is / no intelligent merge\". When User Profile is enabled, you must pass `user_id`.\n- search_memories: Retrieve relevant memories. Pass `user_id` by default to keep user isolation. To include user profile in the result, set `add_profile=true` AND you must pass `user_id`; the result may include top-level `profile_content` / `topics` (if available). Optional: `limit` / `threshold` / `filters` (`filters` is a JSON string object).\n- list_memories: List memories by scope (useful for debugging). Optional `user_id`/`agent_id`/`run_id` + `limit`/`offset`; `filters` is a JSON string object (also affects graph-side results when Graph Store is enabled).\n- update_memory: Update memory content when `memory_id` is known (optionally pass `user_id`/`agent_id` as scope). `metadata` is a JSON string object; if omitted, the SDK will try to reuse existing metadata.\n- get_profile: Get the user profile for `user_id` (returns a dict or an empty dict). Only available when User Profile is enabled (user_profile_enabled=true AND db_provider=oceanbase).\n- list_profiles: List user profiles (pagination via `limit`/`offset`). `main_topic`/`sub_topic`/`topic_value` are JSON string arrays; `sub_topic` path format is \"main_topic.sub_topic\". Only available when User Profile is enabled (user_profile_enabled=true AND db_provider=oceanbase).\n- delete_profile: Delete the user profile for `user_id` (dangerous). Only available when User Profile is enabled (user_profile_enabled=true AND db_provider=oceanbase). You MUST ask for an explicit second confirmation; only call after the user clearly confirms.\n- delete_all_memories: Delete memories by scope (dangerous; empty scope may delete everything). You MUST ask for an explicit second confirmation; only call after the user clearly confirms.\n```\n\n### Notes\n- infer=true uses intelligent mode; infer=false uses simple mode.  \n- OceanBase only when DB Type is oceanbase; default sqlite.  \n- Ensure the OceanBase database exists before using it as vector store.  \n- seekdb as light OceanBase: choose DB Type to be oceanbase and fill seekdb connection to use it as vector store.  \n- Scope user_id/agent_id etc. affects search/update/delete; leave empty for no scope.  \n- User Profile feature is only available when `user_profile_enabled=true` and `db_provider=oceanbase`; otherwise profile tools will return a friendly error and search `add_profile` will not return profile.  \n- Graph feature (`graph_store_enabled`) is only available when `db_provider=oceanbase` and uses the same OceanBase connection parameters.  \n\n### Version History\n| Version | Date    | Changes        |\n|---------|---------|----------------|\n| v0.0.3  | 2026-01-07 | PowerMem 0.2.1 SDK, keep raw JSON return, improve text output and add user profile tools |\n| v0.0.2  | 2025-12-17 | Enhanced workflow text output with ID and key fields, use PowerMem 0.2.0 SDK |\n| v0.0.1  | Initial | First release  |\n\n### Contributing\n- [PowerMem](https://github.com/oceanbase/powermem) main repo  \n- [dify-plugin-powermem](https://github.com/oceanbase/dify-plugin-powermem) plugin repo","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foceanbase%2Fdify-plugin-powermem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foceanbase%2Fdify-plugin-powermem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foceanbase%2Fdify-plugin-powermem/lists"}