Skip to content

Commit

Permalink
Added info about allowed parameter types
Browse files Browse the repository at this point in the history
  • Loading branch information
szczyglis-dev committed Aug 22, 2024
1 parent ad1c301 commit 6490bc9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion examples/example_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 6490bc9

Please sign in to comment.