dify/api/core/tools
Harry 9b5e5f0f50 refactor(api): replace dict type hints with Mapping for improved type safety
Updated type hints in several services to use Mapping instead of dict for better compatibility with various dictionary-like objects. Adjusted credential handling to ensure consistent encryption and decryption processes across ToolManager, DatasourceProviderService, ApiToolManageService, BuiltinToolManageService, and MCPToolManageService. This change enhances code clarity and adheres to strong typing practices.
2025-10-29 18:10:38 +08:00
..
__base Merge remote-tracking branch 'origin/main' into feat/trigger 2025-10-28 11:28:06 +08:00
builtin_tool main 2025-10-21 14:42:27 +08:00
custom_tool fix(api): ensure JSON responses are properly serialized in ApiTool (#27097) 2025-10-19 18:56:02 +08:00
entities Merge remote-tracking branch 'origin/main' into feat/trigger 2025-10-28 11:28:06 +08:00
mcp_tool feat: implement MCP specification 2025-06-18 (#25766) 2025-10-27 17:07:51 +08:00
plugin_tool chore: add ast-grep rule to convert Optional[T] to T | None (#25560) 2025-09-15 13:06:33 +08:00
utils Merge remote-tracking branch 'origin/main' into feat/trigger 2025-10-23 11:54:35 +08:00
workflow_as_tool fix: workflow can't publish tool when has checkbox parameter (#27394) 2025-10-24 15:33:43 +08:00
__init__.py improve: generalize tool parameter converter (#4786) 2024-06-03 21:26:58 +08:00
errors.py Feat/credential policy (#25151) 2025-09-08 23:45:05 -07:00
signature.py fix: resolve Docker file URL networking issue for plugins (#21334) (#21382) 2025-07-11 12:11:59 +08:00
tool_engine.py feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
tool_file_manager.py chore: add ast-grep rule to convert Optional[T] to T | None (#25560) 2025-09-15 13:06:33 +08:00
tool_label_manager.py rm type ignore (#25715) 2025-10-21 11:26:58 +08:00
tool_manager.py refactor(api): replace dict type hints with Mapping for improved type safety 2025-10-29 18:10:38 +08:00