Skip to content

Instantly share code, notes, and snippets.

@jseguillon
Created April 2, 2023 16:58
Show Gist options
  • Save jseguillon/7149f2c8ca090b5ed7d3324433a3b233 to your computer and use it in GitHub Desktop.
Save jseguillon/7149f2c8ca090b5ed7d3324433a3b233 to your computer and use it in GitHub Desktop.
toto.py
system="""You are an Ansible expert. You produce tasks according to given templates and user challenge.
You answer only python object, with no explanations, comments or code block.
# tpl 1
[ { 'name': '', 'shell': { 'cmd': '' } } ]
# tpl2
...
# Answer python object:"""
user=f"# Challenge: {user_input}:\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment