[PR #5833] feat(llm): tool improvement #5331

Open
opened 2025-10-01 16:42:28 -05:00 by giteasync · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TriliumNext/Trilium/pull/5833
Author: @perfectra1n
Created: 6/21/2025
Status: 🔄 Open

Base: mainHead: feat/llm-tool-improvement


📝 Commits (10+)

  • dccd647 feat(llm): try to improve tool and tool calling, part 1
  • 87fd6af feat(llm): try to improve tool and tool calling, part 2
  • e98954c Merge branch 'develop' into feat/llm-tool-improvement
  • e0e1f07 feat(llm): try to squeeze even more out of the tools
  • 6e0fee6 fix(llm): resolve tool lint errors
  • d798d29 fix(llm): remove the vector search tool from the search_notes tool
  • 8bc70a4 Merge branch 'develop' into feat/llm-tool-improvement
  • 4e36dc8 Merge branch 'develop' into feat/llm-tool-improvement
  • 755b1ed Merge branch 'main' into feat/llm-tool-improvement
  • 27847ab debug(llm): add some llm debug tools

📊 Changes

125 files changed (+38557 additions, -6184 deletions)

View changed files

📝 apps/client/src/widgets/llm_chat/communication.ts (+126 -3)
apps/client/src/widgets/llm_chat/enhanced_components.css (+968 -0)
apps/client/src/widgets/llm_chat/enhanced_tool_integration.ts (+511 -0)
apps/client/src/widgets/llm_chat/error_recovery_manager.ts (+451 -0)
apps/client/src/widgets/llm_chat/interaction_manager.ts (+529 -0)
apps/client/src/widgets/llm_chat/progress_indicator.ts (+387 -0)
apps/client/src/widgets/llm_chat/tool_enhanced_ui.css (+333 -0)
apps/client/src/widgets/llm_chat/tool_execution_ui.ts (+309 -0)
apps/client/src/widgets/llm_chat/tool_feedback_ui.ts (+599 -0)
apps/client/src/widgets/llm_chat/tool_preview_ui.ts (+367 -0)
apps/client/src/widgets/llm_chat/tool_websocket.ts (+419 -0)
apps/client/src/widgets/llm_chat/virtual_scroll.ts (+312 -0)
📝 apps/server/src/assets/llm/prompts/providers/anthropic_tool_prompt.md (+27 -0)
📝 apps/server/src/assets/llm/prompts/providers/ollama_tool_prompt.md (+33 -12)
📝 apps/server/src/assets/llm/prompts/providers/openai_tool_prompt.md (+28 -0)
📝 apps/server/src/routes/api/llm.spec.ts (+124 -21)
📝 apps/server/src/routes/api/llm.ts (+186 -8)
apps/server/src/routes/api/llm_metrics.ts (+152 -0)
apps/server/src/routes/api/llm_tools.ts (+298 -0)
📝 apps/server/src/routes/route_api.ts (+1 -1)

...and 80 more files

📄 Description

Continuation of:
https://github.com/TriliumNext/Notes/pull/2284


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/TriliumNext/Trilium/pull/5833 **Author:** [@perfectra1n](https://github.com/perfectra1n) **Created:** 6/21/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/llm-tool-improvement` --- ### 📝 Commits (10+) - [`dccd647`](https://github.com/TriliumNext/Trilium/commit/dccd6477d2abc4ce0f401704c157f374d736919d) feat(llm): try to improve tool and tool calling, part 1 - [`87fd6af`](https://github.com/TriliumNext/Trilium/commit/87fd6afec6e2d2c3b553cf9efe6917d1adcf0bbe) feat(llm): try to improve tool and tool calling, part 2 - [`e98954c`](https://github.com/TriliumNext/Trilium/commit/e98954c5552f7e1be2eff42459dd26132228a72a) Merge branch 'develop' into feat/llm-tool-improvement - [`e0e1f07`](https://github.com/TriliumNext/Trilium/commit/e0e1f0796bbc8cb89ae5707153d5955cb93ccbd8) feat(llm): try to squeeze even more out of the tools - [`6e0fee6`](https://github.com/TriliumNext/Trilium/commit/6e0fee6cb3bede49b08899e03a123ecd00aa9b46) fix(llm): resolve tool lint errors - [`d798d29`](https://github.com/TriliumNext/Trilium/commit/d798d29e9275726c40c1cdd41738459b88220af8) fix(llm): remove the vector search tool from the search_notes tool - [`8bc70a4`](https://github.com/TriliumNext/Trilium/commit/8bc70a4190da454fac75c3f77e88b87f9f5a2100) Merge branch 'develop' into feat/llm-tool-improvement - [`4e36dc8`](https://github.com/TriliumNext/Trilium/commit/4e36dc8e5e83d45d130b5b98e0a8aa318149b131) Merge branch 'develop' into feat/llm-tool-improvement - [`755b1ed`](https://github.com/TriliumNext/Trilium/commit/755b1ed42f6ef3b499c13000ac70c42aa52063c4) Merge branch 'main' into feat/llm-tool-improvement - [`27847ab`](https://github.com/TriliumNext/Trilium/commit/27847ab720506ed182e81ef94b322df24b4d5d22) debug(llm): add some llm debug tools ### 📊 Changes **125 files changed** (+38557 additions, -6184 deletions) <details> <summary>View changed files</summary> 📝 `apps/client/src/widgets/llm_chat/communication.ts` (+126 -3) ➕ `apps/client/src/widgets/llm_chat/enhanced_components.css` (+968 -0) ➕ `apps/client/src/widgets/llm_chat/enhanced_tool_integration.ts` (+511 -0) ➕ `apps/client/src/widgets/llm_chat/error_recovery_manager.ts` (+451 -0) ➕ `apps/client/src/widgets/llm_chat/interaction_manager.ts` (+529 -0) ➕ `apps/client/src/widgets/llm_chat/progress_indicator.ts` (+387 -0) ➕ `apps/client/src/widgets/llm_chat/tool_enhanced_ui.css` (+333 -0) ➕ `apps/client/src/widgets/llm_chat/tool_execution_ui.ts` (+309 -0) ➕ `apps/client/src/widgets/llm_chat/tool_feedback_ui.ts` (+599 -0) ➕ `apps/client/src/widgets/llm_chat/tool_preview_ui.ts` (+367 -0) ➕ `apps/client/src/widgets/llm_chat/tool_websocket.ts` (+419 -0) ➕ `apps/client/src/widgets/llm_chat/virtual_scroll.ts` (+312 -0) 📝 `apps/server/src/assets/llm/prompts/providers/anthropic_tool_prompt.md` (+27 -0) 📝 `apps/server/src/assets/llm/prompts/providers/ollama_tool_prompt.md` (+33 -12) 📝 `apps/server/src/assets/llm/prompts/providers/openai_tool_prompt.md` (+28 -0) 📝 `apps/server/src/routes/api/llm.spec.ts` (+124 -21) 📝 `apps/server/src/routes/api/llm.ts` (+186 -8) ➕ `apps/server/src/routes/api/llm_metrics.ts` (+152 -0) ➕ `apps/server/src/routes/api/llm_tools.ts` (+298 -0) 📝 `apps/server/src/routes/route_api.ts` (+1 -1) _...and 80 more files_ </details> ### 📄 Description Continuation of: https://github.com/TriliumNext/Notes/pull/2284 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
giteasync added the
pull-request
label 2025-10-01 16:42:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TriliumNext/Trilium#5331
No description provided.