chore(config): add .env.example with cursor, pi-agent, and kb variables
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
committed by
weichen
co-authored by
Cursor
parent
6eebe2872a
commit
7838ae804d
@@ -0,0 +1,49 @@
|
||||
# =============================================================================
|
||||
# 商务对接智能体系统 (Chat-Agent-System) - 开发环境配置文件
|
||||
# =============================================================================
|
||||
|
||||
# --- 1. 运行环境与目录 ---
|
||||
ENV=dev
|
||||
DATA_DIR=./data/dev
|
||||
APP_PUBLISH_HOST=127.0.0.1
|
||||
HTTP_PORT=8080
|
||||
|
||||
# --- 2. 智能体后端调度配置 ---
|
||||
# 可选值: pi-agent | cursor-cli | stub
|
||||
AGENT_BACKEND=pi-agent
|
||||
AGENT_TIMEOUT=30m
|
||||
|
||||
# --- 3. Cursor CLI / SDK 后端配置 ---
|
||||
# Cursor API Key (格式通常为 crsr_...)
|
||||
CURSOR_API_KEY=
|
||||
# 模型选择 (auto, claude-3-7-sonnet, gpt-4o 等)
|
||||
CURSOR_MODEL=auto
|
||||
# Cursor 可执行程序路径
|
||||
CURSOR_BIN=/usr/local/bin/cursor
|
||||
# Cursor Node 桥接脚本路径
|
||||
CURSOR_BRIDGE_BIN=tools/cursor-bridge/index.mjs
|
||||
|
||||
# --- 4. Pi-Coding-Agent (pi CLI) 后端配置 ---
|
||||
# pi 命令绝对路径 (通过 which pi 查看,通常为 /opt/homebrew/bin/pi)
|
||||
PI_AGENT_BIN=/opt/homebrew/bin/pi
|
||||
# pi-bridge 脚本路径
|
||||
PI_AGENT_BRIDGE_BIN=tools/pi-bridge/index.mjs
|
||||
# pi 底层 provider (如 anthropic, openai, cc-switch-kimi-for-coding 等)
|
||||
PI_AGENT_PROVIDER=anthropic
|
||||
# pi 所用模型标识 (如 claude-3-7-sonnet, MiniMax-M3, claude-sonnet-4-5 等)
|
||||
PI_AGENT_MODEL=claude-3-7-sonnet
|
||||
# pi 运行时的额外环境变量或 token
|
||||
ANTHROPIC_API_KEY=
|
||||
|
||||
# --- 5. 法规知识库配置 (当前复用已有 agent-regkb Docker 容器) ---
|
||||
KB_DB_HOST=127.0.0.1
|
||||
KB_DB_PORT=55432
|
||||
KB_DB_USER=regkb
|
||||
KB_DB_PASSWORD=shared_kb_secret_pass
|
||||
KB_DB_NAME=regulations
|
||||
|
||||
# 向量检索 Embedding 配置 (复用原系统配置,用于合规检索条目召回)
|
||||
EMBEDDING_ENDPOINT_URL=https://www.dmxapi.cn/v1/embeddings
|
||||
EMBEDDING_PROVIDER=openai_compatible
|
||||
EMBEDDING_MODEL=bge-m3
|
||||
EMBEDDING_API_KEY=
|
||||
Reference in New Issue
Block a user