AgentEvalTool/.env.example
sinohqb 1345daddd2
Some checks failed
CI / test (push) Failing after 45s
feat(engine): make poll_reply timeout configurable via env
被评数字员工响应普遍逼近 30s 硬编码轮询超时,越线的轮次被记为无回复
(run 427b14bb round 2 实测 31.4s 超时)。新增
AGENTEVAL_POLL_REPLY_TIMEOUT(默认 30s),engine 未显式传入
timeout_config 时从 settings 取值,慢目标可放宽。
2026-07-30 09:58:08 +08:00

51 lines
2.9 KiB
Plaintext

# AgentEvalTool environment configuration
# Copy this file to .env and fill in real values. .env is git-ignored.
# ── API security ──────────────────────────────────────────────
# Leave AGENTEVAL_API_KEY empty to disable auth (dev only).
# In production, set a strong random token; clients must send it as X-API-Key.
AGENTEVAL_API_KEY=
# If set, the web UI requires login with this password (session-level, stored
# in sessionStorage). Leave empty to disable the login gate (dev default).
AGENTEVAL_ADMIN_PASSWORD=
# Fernet key used to encrypt model API keys stored in SQLite.
# Generate once with: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
# Keep this value backed up with the database. Do not commit a real key.
AGENTEVAL_SECRET_KEY=
# Comma-separated list of allowed CORS origins. Use ["*"] only in dev.
# The first non-localhost URL in this list is also used as the Origin sent
# to OpenClaw during the WebSocket handshake (auto-derives
# AGENTEVAL_OPENCLAW_WS_ORIGIN), so set this to the public URL of the
# deployment in production.
# Example: AGENTEVAL_ALLOWED_ORIGINS=["http://192.168.8.145:8001"]
AGENTEVAL_ALLOWED_ORIGINS=["*"]
# ── OpenClaw proxy ─────────────────────────────────────────────
AGENTEVAL_OPENCLAW_UPSTREAM=http://openclaw-eval:18789
AGENTEVAL_OPENCLAW_WS_UPSTREAM=ws://openclaw-eval:18789
AGENTEVAL_OPENCLAW_PROXY_USER=agenteval
AGENTEVAL_OPENCLAW_AUTH_TOKEN=change-me-in-production
# Optional override. If unset, the proxy derives the Origin from
# AGENTEVAL_ALLOWED_ORIGINS automatically. Only set this if you need to
# send a different Origin than the public URL of this deployment.
# AGENTEVAL_OPENCLAW_WS_ORIGIN=
# ── Frontend ───────────────────────────────────────────────────
# Optional override of the built frontend dist path (default: frontend/web/dist).
# AGENTEVAL_FRONTEND_DIST_PATH=/app/frontend/web/dist
# ── Evaluation ─────────────────────────────────────────────────
# Seconds to wait for the target's reply per turn before recording no-reply.
# Raise this for slow targets (e.g. digital employees averaging near 30s).
AGENTEVAL_POLL_REPLY_TIMEOUT=30
# ── Webhook ────────────────────────────────────────────────────
# If set, AgentEvalTool will POST run completion summaries to this URL.
# Example: AGENTEVAL_WEBHOOK_URL=https://your-service.example.com/webhooks/agenteval
AGENTEVAL_WEBHOOK_URL=
# Optional shared secret included as X-Webhook-Secret header for verification.
AGENTEVAL_WEBHOOK_SECRET=