Files
nexus/wiki/concepts/Test-Mode.md

38 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Test Mode"
type: concept
tags: []
sources: []
---
# Test Mode
## Definition
在不影响真实客户和现有系统的情况下,允许代理商或开发者演示、测试 AI Agent 行为的沙盒运行模式。Test Mode 下 Agent 执行完整逻辑,但所有输出仅记录到日志,不发送至真实渠道。
## Core Mechanism
```
Real User Message → AI Agent → [Test Mode?]
├── YES: Log response + prefix "[TEST]", DO NOT send to channel
└── NO: Send response to real channel
```
## Use Cases
- **代理商演示**:向潜在客户展示 AI 客服的工作效果,无需预先配置真实渠道
- **配置验证**:验证 AGENTS.md 路由逻辑、知识库覆盖、意图分类准确性
- **A/B 测试**:对比不同 Prompt 配置的实际回复效果
- **回归测试**:升级 Agent 版本前验证新版本不破坏现有行为
## Key Features
- 所有响应日志记录可查,便于审计和优化
- `[TEST]` 前缀标识测试输出,防止与真实回复混淆
- 完整执行所有业务逻辑Intent Classification / Knowledge Lookup / Handoff 判断),确保行为一致性
## Sources
- [[multi-channel-customer-service]]