First_agent_template / tools /my_custom_tool.py
wladimir's picture
add @tool
6e4ee26 verified
raw
history blame contribute delete
356 Bytes
@tool
def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
#Keep this format for the description / args / args description but feel free to modify the tool
"""A tool that does nothing yet
Args:
arg1: the first argument
arg2: the second argument
"""
return "What magic will you build ?"