24 lines
468 B
Python
24 lines
468 B
Python
from griptape.tools import BaseTool
|
|
|
|
|
|
class gtUIBaseTool:
|
|
"""
|
|
Griptape Base Tool
|
|
"""
|
|
|
|
def __init__(self):
|
|
pass
|
|
|
|
@classmethod
|
|
def INPUT_TYPES(s):
|
|
return {"required": {"off_prompt": ("BOOLEAN", {"default": False})}}
|
|
|
|
RETURN_TYPES = ("TOOL_LIST",)
|
|
RETURN_NAMES = ("TOOL",)
|
|
FUNCTION = "create"
|
|
|
|
CATEGORY = "Griptape/Agent Tools"
|
|
|
|
def create(self, off_prompt):
|
|
return ([BaseTool(off_prompt=off_prompt)],)
|