fix: emit tool.started immediately on function_call and add duration to tool.completed (#647)

- Emit tool.started on response.output_item.added instead of .done
- Track startedAt timestamp for each tool call to calculate duration
- Include duration (2 decimal places) and error status in tool.completed
- Fix response.completed fallback to emit tool.started before tool.completed
- Update website license from MIT to BSL-1.1

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
ekko
2026-05-12 12:08:12 +08:00
committed by GitHub
parent 13061f8880
commit 96866f36e5
3 changed files with 28 additions and 19 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ export default {
},
footer: {
description: 'Self-hosted AI chat dashboard for Hermes Agent.',
license: 'MIT License',
license: 'BSL-1.1 License',
madeWith: 'Built with Vue 3, Naive UI, and TypeScript.',
},
docs: {
+1 -1
View File
@@ -101,7 +101,7 @@ export default {
},
footer: {
description: 'Hermes Agent 的自托管 AI 聊天仪表板。',
license: 'MIT 开源协议',
license: 'BSL-1.1 开源协议',
madeWith: '使用 Vue 3、Naive UI 和 TypeScript 构建。',
},
docs: {