feat(tool system): The specific method for obtaining the tool and the parameters to be passed

This commit is contained in:
谢俊男
2025-12-29 18:32:29 +08:00
parent 284951900d
commit 7f823ee72e
12 changed files with 21 additions and 22 deletions

View File

@@ -193,7 +193,7 @@ class BaseTool(ABC):
def to_langchain_tool(self):
"""转换为Langchain工具格式"""
from .langchain_adapter import LangchainAdapter
from app.core.tools.langchain_adapter import LangchainAdapter
return LangchainAdapter.convert_tool(self)
def __repr__(self):