diff --git a/README.md b/README.md index 38c86ec..c7fdba5 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ | `service` | 对于连接的 mcp server 进行热更新 | `MVP` | 0% | `P1` | | `service` | 系统配置信息云同步 | `MVP` | 0% | `P1` | | `all` | 系统提示词管理模块 | `MVP` | 0% | `P1` | +| `service` | 工具 wise 的日志系统 | `MVP` | 0% | `P0` | ## Dev diff --git a/renderer/src/components/main-panel/chat/task-loop.ts b/renderer/src/components/main-panel/chat/task-loop.ts index 219d338..4f44d22 100644 --- a/renderer/src/components/main-panel/chat/task-loop.ts +++ b/renderer/src/components/main-panel/chat/task-loop.ts @@ -39,15 +39,18 @@ export class TaskLoop { const toolName = toolCall.function.name; const toolArgs = JSON.parse(toolCall.function.arguments); const toolResponse = await callTool(toolName, toolArgs); + if (!toolResponse.isError) { const content = JSON.stringify(toolResponse.content); return content; } else { this.onError(`工具调用失败: ${toolResponse.content}`); + console.error(toolResponse.content); } } catch (error) { this.onError(`工具调用失败: ${(error as Error).message}`); + console.error(error); } } diff --git a/renderer/src/i18n/ar.json b/renderer/src/i18n/ar.json index 4b9d666..bf13512 100644 --- a/renderer/src/i18n/ar.json +++ b/renderer/src/i18n/ar.json @@ -143,5 +143,6 @@ "creative": "إبداع", "single-dialog": "محادثة من جولة واحدة", "multi-dialog": "محادثة متعددة الجولات", - "press-and-run": "اكتب سؤالاً لبدء الاختبار" + "press-and-run": "اكتب سؤالاً لبدء الاختبار", + "connect-sigature": "توقيع الاتصال" } \ No newline at end of file diff --git a/renderer/src/i18n/de.json b/renderer/src/i18n/de.json index 9a40e64..f279f5b 100644 --- a/renderer/src/i18n/de.json +++ b/renderer/src/i18n/de.json @@ -143,5 +143,6 @@ "creative": "Kreativität", "single-dialog": "Einzelrunden-Dialog", "multi-dialog": "Mehrrundengespräch", - "press-and-run": "Geben Sie eine Frage ein, um den Test zu starten" + "press-and-run": "Geben Sie eine Frage ein, um den Test zu starten", + "connect-sigature": "Verbindungssignatur" } \ No newline at end of file diff --git a/renderer/src/i18n/en.json b/renderer/src/i18n/en.json index a029315..e1db33b 100644 --- a/renderer/src/i18n/en.json +++ b/renderer/src/i18n/en.json @@ -143,5 +143,6 @@ "creative": "Creativity", "single-dialog": "Single-round dialogue", "multi-dialog": "Multi-turn conversation", - "press-and-run": "Type a question to start the test" + "press-and-run": "Type a question to start the test", + "connect-sigature": "Connection signature" } \ No newline at end of file diff --git a/renderer/src/i18n/fr.json b/renderer/src/i18n/fr.json index 4cde1c5..75005fc 100644 --- a/renderer/src/i18n/fr.json +++ b/renderer/src/i18n/fr.json @@ -143,5 +143,6 @@ "creative": "Créativité", "single-dialog": "Dialogue en un tour", "multi-dialog": "Conversation multi-tours", - "press-and-run": "Tapez une question pour commencer le test" + "press-and-run": "Tapez une question pour commencer le test", + "connect-sigature": "Signature de connexion" } \ No newline at end of file diff --git a/renderer/src/i18n/ja.json b/renderer/src/i18n/ja.json index 8fdc418..1309121 100644 --- a/renderer/src/i18n/ja.json +++ b/renderer/src/i18n/ja.json @@ -143,5 +143,6 @@ "creative": "創造性", "single-dialog": "単一ラウンドの対話", "multi-dialog": "マルチターン会話", - "press-and-run": "テストを開始するには質問を入力してください" + "press-and-run": "テストを開始するには質問を入力してください", + "connect-sigature": "接続署名" } \ No newline at end of file diff --git a/renderer/src/i18n/ko.json b/renderer/src/i18n/ko.json index 2261d58..b755e59 100644 --- a/renderer/src/i18n/ko.json +++ b/renderer/src/i18n/ko.json @@ -143,5 +143,6 @@ "creative": "창의성", "single-dialog": "단일 라운드 대화", "multi-dialog": "다중 턴 대화", - "press-and-run": "테스트를 시작하려면 질문을 입력하세요" + "press-and-run": "테스트를 시작하려면 질문을 입력하세요", + "connect-sigature": "연결 서명" } \ No newline at end of file diff --git a/renderer/src/i18n/ru.json b/renderer/src/i18n/ru.json index 0915026..5e8d9dd 100644 --- a/renderer/src/i18n/ru.json +++ b/renderer/src/i18n/ru.json @@ -143,5 +143,6 @@ "creative": "Творчество", "single-dialog": "Однораундовый диалог", "multi-dialog": "Многораундовый разговор", - "press-and-run": "Введите вопрос, чтобы начать тест" + "press-and-run": "Введите вопрос, чтобы начать тест", + "connect-sigature": "Подпись соединения" } \ No newline at end of file diff --git a/renderer/src/i18n/zh-cn.json b/renderer/src/i18n/zh-cn.json index 92a0736..e11f387 100644 --- a/renderer/src/i18n/zh-cn.json +++ b/renderer/src/i18n/zh-cn.json @@ -143,5 +143,6 @@ "creative": "创意", "single-dialog": "单轮对话", "multi-dialog": "多轮对话", - "press-and-run": "键入问题以开始测试" + "press-and-run": "键入问题以开始测试", + "connect-sigature": "连接签名" } \ No newline at end of file diff --git a/renderer/src/i18n/zh-tw.json b/renderer/src/i18n/zh-tw.json index db2e62d..223e2ed 100644 --- a/renderer/src/i18n/zh-tw.json +++ b/renderer/src/i18n/zh-tw.json @@ -143,5 +143,6 @@ "creative": "創意", "single-dialog": "單輪對話", "multi-dialog": "多輪對話", - "press-and-run": "輸入問題以開始測試" + "press-and-run": "輸入問題以開始測試", + "connect-sigature": "連接簽名" } \ No newline at end of file diff --git a/renderer/src/views/connect/connection-args.vue b/renderer/src/views/connect/connection-args.vue index 3b90b90..e38d1df 100644 --- a/renderer/src/views/connect/connection-args.vue +++ b/renderer/src/views/connect/connection-args.vue @@ -1,23 +1,41 @@