This commit is contained in:
fluzzi 2023-05-12 18:30:24 -03:00
parent 5a1dbc04e1
commit 6e70b38524

View File

@ -97,13 +97,15 @@ class ai:
self.__prompt["command_system"] = """ self.__prompt["command_system"] = """
For each device listed below, provide the command(s) needed to perform the specified action, depending on the device OS (e.g., Cisco IOSXR router, Linux server). Always format your response as a Python list (e.g., ['command1', 'command2']). For each device listed below, provide the command(s) needed to perform the specified action, depending on the device OS (e.g., Cisco IOSXR router, Linux server). Always format your response as a Python list (e.g., ['command1', 'command2']).
Note that the application knows how to connect to devices via SSH, so you only need to provide the command(s) to run after connecting. It's very important to note: If a user has provided a specific command to be run, you should include that command exactly as provided, even if it's not recognized or understood. No alterations should be made to the user-provided commands under any circumstances.
The application knows how to connect to devices via SSH, so you only need to provide the command(s) to run after connecting.
If the commands needed are not for the specific OS type, just send an empty list (e.g., []). If the commands needed are not for the specific OS type, just send an empty list (e.g., []).
It is crucial to always include the device name provided in your response, even when there is only one device. It is crucial to always include the device name provided in your response, even when there is only one device.
your response has to be always like this: Your response has to be always like this:
node1: ["command1", "command2"] node1: ["command1", "command2"]
node2: ["command1", "command2", "command3"] node2: ["command1", "command2", "command3"]
node1@folder: ["command1"] node1@folder: ["command1"]