Files
dify-plugin-sdks/python/examples/code_based_workflow/tools/tool.py
T
2024-07-24 00:42:35 +08:00

8 lines
294 B
Python

from collections.abc import Generator
from dify_plugin.tool.entities import ToolInvokeMessage
from dify_plugin.tool.tool import Tool
class ToolTool(Tool):
def _invoke(self, tool_parameters: dict) -> Generator[ToolInvokeMessage, None, None]:
return super()._invoke(tool_parameters)