feat(ai): added MCP server discovery properties and refactored tool call handling

- Added mcpServerName and mcpToolName optional properties to tool definitions for MCP server discovery and tool name tracking.
- Changed aborted tool call handling to preserve existing tool results instead of replacing with synthetic 'aborted' results at turn boundaries.
- Extracted flushPendingToolCalls() and flushPendingAbortedToolCalls() helpers to consolidate orphaned tool call handling logic.
- Updated tool result handling to use message timestamps instead of Date.now() for synthetic results consistency.
This commit is contained in:
can1357
2026-03-18 23:12:22 +01:00
parent 51fb0ade87
commit 09b0bad87d
7 changed files with 88 additions and 69 deletions
+3
View File
@@ -1,6 +1,9 @@
# Changelog
## [Unreleased]
### Added
- Added `mcpServerName` and `mcpToolName` optional properties to custom tools for MCP server discovery and search metadata
## [13.13.1] - 2026-03-18
### Added