WeKnora/internal/agent
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
..
skills feat: adapt preloaded skills to smart-reasoning agent 2026-02-04 20:08:49 +08:00
tools feat: enforce maximum length for tool names in MCPTool 2026-03-05 18:14:14 +08:00
const.go refactor: Remove agent_test command-line tool and associated files to streamline project structure and eliminate unused components 2025-12-01 17:24:57 +08:00
engine.go feat: support agent skills 2026-02-04 20:08:49 +08:00
prompts.go feat: optimize security and deployment of agent skills 2026-02-04 20:08:49 +08:00