mirror of
https://github.com/langgenius/dify.git
synced 2026-11-10 21:35:45 +08:00
refactor(tools): place API bindings with custom tool owner
This commit is contained in:
1 parent
2ae6b67720
commit
13e3f080f0
4 files changed
+2
-3
No files matched your search
@@ -1 +0,0 @@
|
||||
"""Native custom API Tool definition ownership."""
|
||||
File renamed without changes.
@@ -1204,7 +1204,7 @@ class ToolManager:
|
||||
|
||||
selected_bundle = None
|
||||
if expected_binding is not None:
|
||||
from core.tools.api_tool.definition_binding import admit_api_definition
|
||||
from core.tools.custom_tool.definition_binding import admit_api_definition
|
||||
|
||||
selected_bundle = admit_api_definition(provider, action, expected_binding)
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ from typing import Any
|
||||
from sqlalchemy import select
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
from core.tools.api_tool.definition_binding import admit_api_definition, api_definition, provider_definition
|
||||
from core.tools.custom_tool.definition_binding import admit_api_definition, api_definition, provider_definition
|
||||
from models.tools import ApiToolProvider
|
||||
|
||||
__all__ = ["admit_api_definition", "api_definition", "is_api_tool", "owned_api_definitions", "provider_definition"]
|
||||
|
||||
Reference in new issue
Block a user