Skip to content

Instantly share code, notes, and snippets.

View mbalabash's full-sized avatar
🔥

Maksim Balabash mbalabash

🔥
View GitHub Profile
@mbalabash
mbalabash / prompt_class.py
Created May 25, 2024 19:49
Create prompts with customizable templates, save/load them to/from YAML files.
class Prompt:
_name = ""
_description = ""
_template = ""
_prompt = ""
_defaultTemplate = Template("""
$__OPTIONAL__header
$__OPTIONAL__role