init
This commit is contained in:
21
example.py
Normal file
21
example.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from pathlib import Path
|
||||
from src.llmutils import PromptManager
|
||||
from pprint import pprint
|
||||
|
||||
|
||||
def main():
|
||||
print("Hello from llmutils!")
|
||||
print("#"*5 + " Available Prompts " + "#"*5)
|
||||
pprint(PromptManager().list_prompts())
|
||||
|
||||
system_prompt = PromptManager().get_prompt('system_message')
|
||||
print("#"*5 + " System Message " + "#"*5)
|
||||
print(system_prompt.prompt)
|
||||
|
||||
welcome_prompt = PromptManager().get_prompt('welcome', user='Alex', project_name='Something')
|
||||
print("#"*5 + " Welcome Prompt " + "#"*5)
|
||||
print(welcome_prompt.prompt)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user