From 6490bc91049a2ff18e0f85d722ded5f297387c6d Mon Sep 17 00:00:00 2001 From: Marcin Szczyglinski Date: Thu, 22 Aug 2024 17:29:57 +0200 Subject: [PATCH] Added info about allowed parameter types --- examples/example_plugin.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/example_plugin.py b/examples/example_plugin.py index 80c50d0c8..2f06d414f 100644 --- a/examples/example_plugin.py +++ b/examples/example_plugin.py @@ -6,7 +6,7 @@ # GitHub: https://github.com/szczyglis-dev/py-gpt # # MIT License # # Created By : Marcin SzczygliƄski # -# Updated Date: 2024.03.12 06:00:00 # +# Updated Date: 2024.08.22 06:00:00 # # ================================================== # from pygpt_net.plugin.base import BasePlugin # <-- every plugin must inherit from BasePlugin @@ -178,6 +178,14 @@ def cmd_syntax(self, data: dict): Model will generate the command in JSON format, and after the response with command will be received, the Event.CMD_EXECUTE event will be dispatched with the command to be executed and its params. + Available parameter types: + - str + - int + - float + - bool + - dict + - list + :param data: event data dictionary """ data['cmd'].append(