refactor(ch12): align filenames and update corresponding README sections

This commit is contained in:
Annyfee
2026-01-03 17:32:55 +08:00
parent 857ffa1417
commit e5f8826d59
5 changed files with 131 additions and 113 deletions
+6 -6
View File
@@ -4,7 +4,7 @@
---
### 1. 模块概述
## 模块概述
本模块基于 Agents SDK Swarm 框架实现了一个航空公司智能客服系统,展示了多智能体协作、智能转接和工具调用的核心功能。
@@ -17,7 +17,7 @@
---
### 2. `tools.py` (业务工具与上下文)
### 1. `s01_tools.py` (业务工具与上下文)
定义了系统使用的业务工具和全局上下文变量。
@@ -33,7 +33,7 @@
---
### 3. `agent.py` (智能体定义与配置)
### 2. `s02_agent.py` (智能体定义与配置)
定义了系统中的所有智能体及其交互规则。
@@ -52,7 +52,7 @@
---
### 4. `main.py` (系统运行入口)
### 3. `s03_main.py` (系统运行入口)
实现了智能客服系统的运行逻辑和用户交互界面。
@@ -84,7 +84,7 @@
2. **运行方式**
```bash
python -m m12_agents_sdk_swarm.main
python -m m12_agents_sdk_swarm.s03_main
```
3. **使用示例**
@@ -115,4 +115,4 @@
- 确保已正确安装所有依赖(可通过项目根目录的 `requirements.txt` 安装)
- 高德地图 API Key 是系统正常运行的必要条件
- 如遇到连接问题,检查网络设置和 API Key 的有效性
- 系统默认关闭 Tracing 功能,如需启用请在 `main.py` 中取消注释相关代码并配置 API Key
- 系统默认关闭 Tracing 功能,如需启用请在 `s03_main.py` 中取消注释相关代码并配置 API Key