alibabacloud-bailian-memory
Bailian Memory Library
Manage conversation memories and user profiles in Alibaba Cloud Bailian (Model Studio) Memory Library through DashScope REST APIs. The Memory Library automatically extracts key information from conversations and stores them as memory fragments, enabling agents to reference user preferences and historical context across sessions.
Architecture: Agent → Python Scripts → DashScope REST API → Memory Library (Memories + User Profiles)
Scope: This skill covers 12 memory and user-profile operations plus 7 management operations of the Memory Library (see Core Workflows). All memory writes are asynchronous: the request is accepted immediately and extraction runs in the background, returning an event_id. Memory projects (create/list/get/update) and profile schemas (create/list/update) are managed directly by this skill; project/schema deletion is not covered — use the Bailian console for that.
Key Concepts:
| Concept | Description |
|---|---|
Memory Library (memory_library_id) |
Container for managing memories. Each account has a default library; omit the ID to use it. |
Memory Fragment (memory_node_id) |
Key events/info extracted from conversations (e.g., "User needs daily reminders"). |
Memory Project (project_id) |
Second-level memory isolation. Each project has a plan_version (pro/lite) setting. Created and managed via this skill (workflow 11). |
Memory Entity (user_id) |
Identifier for the memory owner. Used for memory isolation between users. |
Profile Schema (profile_schema_id) |
Template defining which user attributes to extract. Created and managed via this skill (workflow 12); an immutable attribute keeps its default_value and is never changed by extraction. |
Async Event (event_id) |
Handle of a background extraction task created by add-async; one record per resource with status PENDING/SUCCEEDED/FAILED; after SUCCEEDED the record carries a result[] array describing applied changes. |