Skip to content

Commit ac2d6d8

Browse files
committed
Merge remote-tracking branch 'origin/main' into ljy/main
2 parents 4410ed0 + a812023 commit ac2d6d8

File tree

7 files changed

+115
-76
lines changed

7 files changed

+115
-76
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ git checkout -b your-branch-name
6868
```
6969

7070
### Step 4: Make Your Changes
71-
🧙‍♂️ Code like a wizard! Follow our [Development Guide](./DEVELOPMENT.md) for setup instructions and coding standards. Ensure your changes are well-tested and documented.
71+
🧙‍♂️ Code like a wizard! Follow our [Development Guide](./DEVELOPPER_NOTE.md) for setup instructions and coding standards. Ensure your changes are well-tested and documented.
7272

7373
### Step 5: Commit Your Changes
7474
📝 Commit with a clear and concise message following our commit message guidelines:

CONTRIBUTING_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ git checkout -b 您的分支名
6969
```
7070

7171
### 第四步:进行更改
72-
🧙‍♂️ 像魔法师一样编码!遵循我们的 [开发指南](./DEVELOPMENT.md) 获取设置说明和编码标准。确保您的更改经过充分测试并有文档记录。
72+
🧙‍♂️ 像魔法师一样编码!遵循我们的 [开发指南](./DEVELOPPER_NOTE_CN.md) 获取设置说明和编码标准。确保您的更改经过充分测试并有文档记录。
7373

7474
### 第五步:提交更改
7575
📝 按照我们的提交消息规范,提交清晰简洁的消息(建议采用英文,让更多人理解你):

FAQ.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,25 @@ This FAQ addresses common questions and issues you might encounter while install
1111
- **Q: How do I get a Jina API key for embeddings?**
1212
- A: To use Jina-based embedding model, you'll need to:
1313
1. Visit [Jina AI's website](https://jina.ai/), no need to sign up
14-
3. Navigate to the Embedding section to get your API key
15-
4. Add your API key in the app
14+
2. Navigate to the Embedding section to get your API key
15+
3. Add your API key in the app
1616

17-
### 🐳 Docker & Docker Compose
18-
- **Q: TODO**
19-
- A: TODO
17+
### ⚙️ MCP Server Configuration
18+
- **Q: How do I configure the MCP server? Is frontend configuration supported?**
19+
- A: Currently, the MCP server does not support frontend configuration. We plan to add frontend configuration in version v1.1.0. To configure the MCP server, please follow the installation and deployment steps in @README.md. After running `cp .env.example .env`, manually edit the `MCP_SERVICE` field in your `.env` file to the desired MCP service address. Save the file, and you will be able to access the corresponding MCP tools. Note: After making changes, you need to rerun deploy.sh to redeploy.
20+
21+
## 🚫 Common Errors & Operations
2022

2123
### 🌐 Port Conflicts
2224
- **Q: Port 3000 is already in use. How can I change it?**
2325
- A: You can modify the port in the Docker Compose configuration file.
2426

25-
## 🔍 Troubleshooting
26-
27-
### 🚫 Common Errors
28-
- **Q: The setup wizard isn't loading at http://localhost:3000**
29-
- A: TODO
30-
3127
### 📦 Container Issues
3228
- **Q: How do I check container logs?**
3329
- A: Use `docker logs <container_name>` to view logs for specific containers.
3430

31+
## 🔍 Troubleshooting
32+
3533
### 📧 Email Tools Configuration
3634
- **Q: How can I enable and configure email tools?**
3735
- A: Our team has pre-implemented email tools based on IMAP and SMTP. To enable them:
@@ -45,4 +43,4 @@ This FAQ addresses common questions and issues you might encounter while install
4543
If your question isn't answered here:
4644
- Join our [Discord community](https://discord.gg/tb5H3S3wyv) for real-time support
4745
- Check our [GitHub Issues](https://github.com/ModelEngine-Group/nexent/issues) for similar problems
48-
- Refer to our [Contribution Guide](../CONTRIBUTING.md) for more detailed information
46+
- Refer to our [Contribution Guide](CONTRIBUTING.md) for more detailed information

FAQ_CN.md

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,35 +14,23 @@
1414
3. 进入 Embedding 部分页面获取您的 API 密钥
1515
4. 将 API 密钥添加到页面中
1616

17-
### 🐳 Docker 与 Docker Compose
18-
- **Q: TODO**
19-
- A: TODO
17+
### ⚙️ MCP 服务器配置
18+
- **Q: 当前 MCP 服务器如何配置?支持前端配置吗?**
19+
- A: 当前 MCP 服务器暂不支持前端配置。我们计划在 v1.1.0 版本上线前端配置功能。如需配置 MCP 服务器,请参考 @README.md 的安装部署流程,在执行 `cp .env.example .env` 后,手动编辑 `.env` 文件中的 `MCP_SERVICE` 字段,将其设置为需要使用的 MCP 服务地址,保存后即可访问对应的 MCP 工具。注意,修改后需重新运行 deploy.sh 进行部署。
20+
21+
## 🚫 常见错误与运维方式
2022

2123
### 🌐 端口冲突
2224
- **Q: 端口 3000 已被占用,如何修改?**
2325
- A: 可以在 Docker Compose 配置文件中修改端口。
2426

25-
## 🔍 故障排除
26-
27-
### 🚫 常见错误
28-
- **Q: 设置向导无法在 http://localhost:3000 加载**
29-
- A: TODO
30-
3127
### 📦 容器问题
3228
- **Q: 如何查看容器日志?**
3329
- A: 使用 `docker logs <容器名称>` 命令查看特定容器的日志。
3430

35-
### 📧 邮件工具配置
36-
- **Q: 如何启用和配置邮件工具?**
37-
- A: 我们团队已经预制实现了基于 IMAP 和 SMTP 的邮件工具。要启用它们:
38-
1.`.env` 文件中配置邮件参数
39-
2.`agent_utils.py` 中取消邮件工具相关的注释
40-
3. 切换到支持邮件的系统提示词 `code_agent_with_email.yaml`
41-
4. 重启 MCP 服务使更改生效
42-
4331
## ❓ 需要更多帮助?
4432

4533
如果这里没有找到您的问题答案:
4634
- 加入我们的 [Discord 社区](https://discord.gg/tb5H3S3wyv) 获取实时支持
4735
- 查看我们的 [GitHub Issues](https://github.com/ModelEngine-Group/nexent/issues) 寻找类似问题
48-
- 参考我们的[贡献指南](../CONTRIBUTING_CN.md)获取更详细的信息
36+
- 参考我们的[贡献指南](CONTRIBUTING_CN.md)获取更详细的信息

frontend/app/setup/agentSetup/AgentConfig.tsx

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ export default function AgentConfig() {
4343
const [newAgentDescription, setNewAgentDescription] = useState("")
4444
const [newAgentProvideSummary, setNewAgentProvideSummary] = useState(true)
4545
const [isNewAgentInfoValid, setIsNewAgentInfoValid] = useState(false)
46+
const [isEditingAgent, setIsEditingAgent] = useState(false)
47+
const [editingAgent, setEditingAgent] = useState<any>(null)
4648

4749
// load tools when page is loaded
4850
useEffect(() => {
@@ -167,6 +169,17 @@ export default function AgentConfig() {
167169
}
168170
}, [isCreatingNewAgent]);
169171

172+
const handleEditingStateChange = (isEditing: boolean, agent: any) => {
173+
setIsEditingAgent(isEditing)
174+
setEditingAgent(agent)
175+
}
176+
177+
const getCurrentAgentId = () => {
178+
if (isEditingAgent && editingAgent) {
179+
return parseInt(editingAgent.id)
180+
}
181+
return mainAgentId ? parseInt(mainAgentId) : undefined
182+
}
170183

171184
return (
172185
<div className="w-full h-full mx-auto px-4" style={{ maxWidth: "1920px"}}>
@@ -238,6 +251,7 @@ export default function AgentConfig() {
238251
setNewAgentProvideSummary={setNewAgentProvideSummary}
239252
isNewAgentInfoValid={isNewAgentInfoValid}
240253
setIsNewAgentInfoValid={setIsNewAgentInfoValid}
254+
onEditingStateChange={handleEditingStateChange}
241255
/>
242256
</div>
243257
</div>
@@ -258,7 +272,7 @@ export default function AgentConfig() {
258272
setIsDebugDrawerOpen(true);
259273
setCurrentGuideStep(isCreatingNewAgent ? 5 : 5);
260274
}}
261-
agentId={mainAgentId ? parseInt(mainAgentId) : undefined}
275+
agentId={getCurrentAgentId()}
262276
/>
263277
</div>
264278
</div>
@@ -287,7 +301,7 @@ export default function AgentConfig() {
287301
setTestQuestion={setTestQuestion}
288302
testAnswer={testAnswer}
289303
setTestAnswer={setTestAnswer}
290-
agentId={mainAgentId ? Number(mainAgentId) : undefined}
304+
agentId={getCurrentAgentId()}
291305
/>
292306
</div>
293307
</Drawer>

0 commit comments

Comments
 (0)