Improve tg-invoke-prompt help

This commit is contained in:
Cyber MacGeddon 2024-11-08 18:13:29 +00:00
parent 09729096b5
commit 391f9e33f4

View file

@ -3,7 +3,7 @@
""" """
Invokes the LLM prompt service by specifying the prompt template to use Invokes the LLM prompt service by specifying the prompt template to use
and values for the variables in the prompt template. The and values for the variables in the prompt template. The
prompt template is identifier by its template identifier e.g. prompt template is identified by its template identifier e.g.
question, extract-definitions. Template variable values are specified question, extract-definitions. Template variable values are specified
using key=value arguments on the command line, and these replace using key=value arguments on the command line, and these replace
{{key}} placeholders in the template. {{key}} placeholders in the template.
@ -44,14 +44,15 @@ def main():
'id', 'id',
metavar='template-id', metavar='template-id',
nargs=1, nargs=1,
help=f'Prompt identifier e.g. question', help=f'Prompt identifier e.g. question, extract-definitions',
) )
parser.add_argument( parser.add_argument(
'variable', 'variable',
nargs='*', nargs='*',
help='''Prompt template terms of the form key=value, can be specified metavar="variable=value",
multiple times''', help='''Prompt template terms of the form variable=value, can be
specified multiple times''',
) )
args = parser.parse_args() args = parser.parse_args()