Metadata-Version: 2.3
Name: tablestore-for-agent-memory
Version: 1.0.1
Summary: Tablestore for Agent Memory in AI Agent.
License: Apache-2.0
Author: xunjian.sl
Author-email: xunjian.sl@alibaba-inc.com
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: pydantic (>=2.10.6,<3.0.0)
Requires-Dist: tablestore (>=6.2.0,<7.0.0)
Project-URL: Homepage, https://www.aliyun.com/product/ots
Description-Content-Type: text/markdown

# Tablestore for Agent Memory (Python 实现)

## 安装

``` shell
  pip install tablestore-for-agent-memory
```

> pypi 仓库链接请参考：[tablestore-for-agent-memory](https://pypi.org/project/tablestore-for-agent-memory/)


## 文档 

- Memory Store
  - 用户与大模型交互的session会话管理和聊天消息记录 
  - [入门指南 notebook 链接](https://github.com/aliyun/alibabacloud-tablestore-for-agent-memory/blob/main/python/docs/memory_store_tutorial.ipynb)
- Knowledge Store
  - 知识库文档管理，相似性搜索。
  - [入门指南 notebook 链接](https://github.com/aliyun/alibabacloud-tablestore-for-agent-memory/blob/main/python/docs/knowledge_store_tutorial.ipynb)


## 依赖

- python >= 3.9
- 项目管理工具：poetry

## 打包

```shell
  poetry build
```

打包结果在当前目录`dist`下.

别的项目本地安装该项目的引用:
```shell
  # pip 项目
  pip install ${真实目录}/dist/tablestore_for_agent_memory-${具体版本}-py3-none-any.whl
  # poetry 项目
  poetry add ${真实目录}/dist/tablestore_for_agent_memory-${具体版本}-py3-none-any.whl
```

## 开发

安装依赖：
```shell
  poetry install
```
代码格式化：
```shell
  make format
```
跑全部测试：
```shell
  make test
```
