chore: initial import
This commit is contained in:
24
main.py
Normal file
24
main.py
Normal file
@@ -0,0 +1,24 @@
|
||||
import os
|
||||
|
||||
from Runner import Runner
|
||||
|
||||
|
||||
def getenv(name, default=None):
|
||||
value = os.getenv(name)
|
||||
if value is None or value == "":
|
||||
return default
|
||||
return value
|
||||
|
||||
|
||||
def main():
|
||||
userId = getenv("TARGET_USER_ID")
|
||||
category = getenv("PROMPT_CATEGORY", "general")
|
||||
promptName = getenv("PROMPT_NAME", "welcome")
|
||||
context = getenv("PROMPT_CONTEXT", "container test run")
|
||||
|
||||
message = Runner.run(userId, category, promptName, context)
|
||||
print(f"[runner] response: {message}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user