Metadata-Version: 2.4
Name: cota
Version: 1.0.1
Summary: Chain of Thought Agent Platform for Industrial-Grade Dialogue Systems
License: MIT
License-File: LICENSE
Keywords: chatbot,dialogue,agent,llm,chain-of-thought
Author: MingGuangShao
Author-email: 690714362@qq.com
Requires-Python: >=3.12
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: aiohttp (>=3.9,<4.0)
Requires-Dist: asyncio (>=3.4.3,<4.0.0)
Requires-Dist: cpm-kernels (>=1.0.11,<2.0.0)
Requires-Dist: dashscope (>=1.20.0)
Requires-Dist: faiss-cpu (>=1.8.0.post1,<2.0.0)
Requires-Dist: gunicorn (>=21.2.0,<22.0.0)
Requires-Dist: numpy (>=1.21.4,<2.0.0)
Requires-Dist: openai (>=1.31.1)
Requires-Dist: protobuf (>=4.22.1,<5.0.0)
Requires-Dist: psycopg2-binary (>=2.9.9,<3.0.0)
Requires-Dist: pymysql (>=1.1.1,<2.0.0)
Requires-Dist: pytest (>=7.3.1,<8.0.0)
Requires-Dist: python-socketio (>=4.4,<6)
Requires-Dist: pyyaml (>=6.0.1,<7.0.0)
Requires-Dist: questionary (>=1.5.1,<1.11.0)
Requires-Dist: sanic (>=23.12,<23.13)
Requires-Dist: sanic-cors (>=2.0.0,<2.1.0)
Requires-Dist: sanic-jwt (>=1.6.0,<2.0.0)
Requires-Dist: sanic-routing (>=23.12.0)
Requires-Dist: setuptools (>=70.1.1,<71.0.0)
Requires-Dist: sqlalchemy (>=2.0.22,<3.0.0)
Requires-Dist: websockets (>=10.0,<11.0)
Project-URL: Documentation, https://cotaai.github.io/cota/
Project-URL: Homepage, https://github.com/CotaAI/cota
Project-URL: Repository, https://github.com/CotaAI/cota
Description-Content-Type: text/markdown

<div align="center">

# COTA
**Chain of Thought Agent Platform for Industrial-Grade Dialogue Systems**

*Simple configuration, reliable performance, powered by annotated policy learning*

[![License](https://img.shields.io/github/license/CotaAI/cota?style=for-the-badge)](https://github.com/CotaAI/cota/blob/main/LICENSE)
[![Python](https://img.shields.io/badge/Python-3.12+-blue?style=for-the-badge&logo=python&logoColor=white)](https://www.python.org/)
[![Documentation](https://img.shields.io/badge/Documentation-Available-green?style=for-the-badge)](https://cotaai.github.io/cota/)

[![GitHub Stars](https://img.shields.io/github/stars/CotaAI/cota?style=for-the-badge&logo=github)](https://github.com/CotaAI/cota/stargazers)
[![GitHub Issues](https://img.shields.io/github/issues/CotaAI/cota?style=for-the-badge)](https://github.com/CotaAI/cota/issues)


**[简体中文](#简体中文)** | **[Documentation](https://cotaai.github.io/cota/)**

</div>

## 简体中文

> [!Note]
> 完整的用户文档请访问 [COTA Documentation](https://cotaai.github.io/cota/)

COTA (Chain of Thought Agent) 是一个基于大语言模型的智能体平台，通过**思维链推理**和**标注式策略学习**，让开发者以简单的方式构建可靠的工业级对话系统。

### 💡 核心特征

- **🧠 Chain of Thought 驱动**: 基于思维链推理机制，让AI具备类人的逻辑推理能力
- **📝 标注式策略学习**: 通过标注policies中的thought，训练可靠的对话策略（DPL）
- **🎯 简单易用**: 低代码配置，快速构建生产级智能体

### 📄 许可证

#### 代码许可
代码使用 `MIT License` 发布，允许商业使用和修改。

---

## 🚀 快速开始

### 环境要求

- **Python 3.12+** 
- **Poetry** (推荐) 或 pip
- **Git** 用于代码管理

### 🔧 安装

#### 方法1: 通过Poetry安装 (推荐)

```bash
# 1. 克隆仓库
git clone https://github.com/CotaAI/cota.git
cd cota

# 2. 安装Poetry
pip install poetry

# 3. 安装依赖
poetry install

# 4. 激活虚拟环境
poetry shell
```

#### 方法2: 通过pip安装

```bash
# 1. 创建虚拟环境
python3 -m venv ./venv
source ./venv/bin/activate  # Linux/macOS
# 或 .\venv\Scripts\activate  # Windows

# 2. 克隆仓库
git clone https://github.com/CotaAI/cota.git
cd cota

# 3. 安装依赖
pip install -r requirements.txt
pip install -e .
```

### ⚡ 快速体验

> 确保你在项目根目录下执行以下命令

#### 1. 初始化项目
```bash
# 创建示例机器人配置
cota init
cd cota_projects/simplebot

# 配置API密钥
cp endpoints.yml.example endpoints.yml
# 编辑 endpoints.yml，添加你的LLM API密钥
```

#### 2. 启动命令行对话
```bash
# 启动交互式命令行
cota shell --config=.

# 或启动Web服务
cota run --channel=socket.io --port=5005
```

#### 3. 启动Web界面
```bash
# 启动WebSocket服务
cota run --channel=websocket --host=localhost --port=5005

# 访问 http://localhost:5005 开始对话
```

## 📚 文档和教程

- **[📖 完整文档](https://cotaai.github.io/cota/)** - 详细的使用指南和API文档
- **[🚀 快速入门](https://cotaai.github.io/cota/tutorial/quick_start.html)** - 5分钟上手指南
- **[⚙️ 配置说明](https://cotaai.github.io/cota/configuration/)** - 智能体和系统配置
- **[🏗️ 架构设计](https://cotaai.github.io/cota/architecture/)** - 深入了解系统架构
- **[🚀 部署指南](https://cotaai.github.io/cota/deployment/)** - 生产环境部署

## 🤝 贡献指南

我们欢迎所有形式的贡献！

1. **Fork** 本仓库
2. 创建你的特性分支 (`git checkout -b feature/AmazingFeature`)
3. 提交你的更改 (`git commit -m 'Add some AmazingFeature'`)
4. 推送到分支 (`git push origin feature/AmazingFeature`)
5. 开启一个 **Pull Request**


## 📞 联系我们

> GitHub Issues 和 Pull Requests 随时欢迎！

#### 正式咨询
有关项目和商业合作的正式咨询，请联系：**690714362@qq.com**

#### 社区讨论
##### 1. GitHub Discussions
参与项目讨论：[GitHub Discussions](https://github.com/CotaAI/cota/discussions)

---

<div align="center">

---

**⭐ 如果COTA对你有帮助，请给我们一个Star！**

**⭐ If COTA helps you, please give us a Star!**

![Visitor Count](https://komarev.com/ghpvc/?username=CotaAI&repo=cota&color=blue&style=flat-square)

</div>

