mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-30 03:00:41 -04:00
10 lines
330 B
Python
10 lines
330 B
Python
from autogpt.command_decorator import command
|
|
|
|
|
|
@command(
|
|
"function_based", "Function-based test command", "(arg1: int, arg2: str) -> str"
|
|
)
|
|
def function_based(arg1: int, arg2: str) -> str:
|
|
"""A function-based test command that returns a string with the two arguments separated by a dash."""
|
|
return f"{arg1} - {arg2}"
|