feat: switch tool entities and format

This commit is contained in:
Junyan Qin
2025-06-15 12:51:51 +08:00
parent c5eeab2fd0
commit 0c2560cafb
55 changed files with 455 additions and 774 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ import abc
import typing
from ...core import app, entities as core_entities
from . import entities as tools_entities
import langbot_plugin.api.entities.builtin.resource.tool as resource_tool
preregistered_loaders: list[typing.Type[ToolLoader]] = []
@@ -35,7 +35,7 @@ class ToolLoader(abc.ABC):
pass
@abc.abstractmethod
async def get_tools(self, enabled: bool = True) -> list[tools_entities.LLMFunction]:
async def get_tools(self, enabled: bool = True) -> list[resource_tool.LLMTool]:
"""获取所有工具"""
pass