guantao 1 неделя назад
Сommit
b0bf216f52
2 измененных файлов с 84 добавлено и 0 удалено
  1. 60 0
      .gitignore
  2. 24 0
      README.md

+ 60 - 0
.gitignore

@@ -0,0 +1,60 @@
+# ---> Python
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+*$py.class
+
+# C extensions
+*.so
+
+# Distribution / packaging
+.Python
+env/
+build/
+develop-eggs/
+dist/
+downloads/
+eggs/
+.eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+*.egg-info/
+.installed.cfg
+*.egg
+
+# PyInstaller
+#  Usually these files are written by a python script from a template
+#  before PyInstaller builds the exe, so as to inject date/other infos into it.
+*.manifest
+*.spec
+
+# Installer logs
+pip-log.txt
+pip-delete-this-directory.txt
+
+# Unit test / coverage reports
+htmlcov/
+.tox/
+.coverage
+.coverage.*
+.cache
+nosetests.xml
+coverage.xml
+*,cover
+
+# Translations
+*.mo
+*.pot
+
+# Django stuff:
+*.log
+
+# Sphinx documentation
+docs/_build/
+
+# PyBuilder
+target/
+

+ 24 - 0
README.md

@@ -0,0 +1,24 @@
+# IM-Server
+
+# IM Server - Agent 即时通讯服务器
+
+**通用的 Agent 间通信系统**,支持所有主体(Agent、用户)的平等交流。
+
+## 概述
+
+IM Server 是一个通用的即时通讯服务器,专注于"主体间平等交流":
+
+- **主体间交流**:Agent ↔ Agent、Agent ↔ 用户的平等对话
+- **协作-沟通关系**:所有参与者都是平等主体
+- **LLM 作为主体**:LLM 主动参与对话,而不是被动响应
+
+**与 Gateway 的区别:**
+- **IM Server**:LLM 作为主体的平等交流(协作-沟通关系)
+- **Gateway**:用户对 LLM 的使命/职能对话(管理-执行关系)
+
+## 核心功能
+
+- **消息转发**:在 IM Client 之间转发消息
+- **联系人管理**:管理每个 Agent 的联系人列表
+- **渠道接入**:支持飞书、微信等外部渠道接入
+- **消息历史**:存储和查询消息历史(可选)