WeKnora/internal/agent/tools
wizardchen a1c0682aa3 feat: enforce maximum length for tool names in MCPTool
- Introduced a constant `maxFunctionNameLength` set to 64 characters to comply with OpenAI API constraints on tool names.
- Updated the `Name` method in `MCPTool` to truncate tool names exceeding the maximum length, ensuring unique identification while preventing potential collisions.
- Enhanced the logic to handle long service IDs by using only the first 8 characters when necessary, maintaining the integrity of tool naming conventions.

These changes improve compliance with API requirements and enhance the robustness of tool name generation.
2026-03-05 18:14:14 +08:00
..
data_analysis.go fix(data-analysis): load knowledge files via presigned URLs 2026-02-10 11:44:25 +08:00
data_schema.go feat: add organization management features 2026-02-09 11:40:25 +08:00
database_query.go feat: implement automatic soft-delete filtering in database queries 2026-03-03 22:23:23 +08:00
definitions.go feat: enforce maximum length for tool names in MCPTool 2026-03-05 18:14:14 +08:00
get_document_info.go feat: add organization management features 2026-02-09 11:40:25 +08:00
grep_chunks.go perf: Use swap deletion 2026-02-09 14:13:29 +08:00
knowledge_search.go feat: introduce WeKnora Lite edition with lightweight configuration and deployment 2026-03-02 21:21:49 +08:00
list_knowledge_chunks.go feat: add organization management features 2026-02-09 11:40:25 +08:00
mcp_tool.go feat: enforce maximum length for tool names in MCPTool 2026-03-05 18:14:14 +08:00
query_knowledge_graph.go feat: Add DataSchema tool for retrieving schema information from CSV and Excel files 2025-12-29 20:03:51 +08:00
registry.go feat: enhance MCP tool name and description handling for security 2026-02-06 19:55:29 +08:00
sequentialthinking.go chore: update comments and documentation for SequentialThinkingTool 2026-01-04 16:38:29 +08:00
skill_execute.go feat: optimize security and deployment of agent skills 2026-02-04 20:08:49 +08:00
skill_read.go feat: support agent skills 2026-02-04 20:08:49 +08:00
todo_write.go feat: Add DataSchema tool for retrieving schema information from CSV and Excel files 2025-12-29 20:03:51 +08:00
tool.go feat: Add DataSchema tool for retrieving schema information from CSV and Excel files 2025-12-29 20:03:51 +08:00
web_fetch.go feat(web_fetch): enhance web fetch tool with DNS pinning and validation improvements 2026-02-02 13:33:39 +08:00
web_search.go feat: Add DataSchema tool for retrieving schema information from CSV and Excel files 2025-12-29 20:03:51 +08:00