- 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. |
||
|---|---|---|
| .. | ||
| data_analysis.go | ||
| data_schema.go | ||
| database_query.go | ||
| definitions.go | ||
| get_document_info.go | ||
| grep_chunks.go | ||
| knowledge_search.go | ||
| list_knowledge_chunks.go | ||
| mcp_tool.go | ||
| query_knowledge_graph.go | ||
| registry.go | ||
| sequentialthinking.go | ||
| skill_execute.go | ||
| skill_read.go | ||
| todo_write.go | ||
| tool.go | ||
| web_fetch.go | ||
| web_search.go | ||