Elffuss BraidHub

kikocis/Based-Agent public

69a1eb86ca4d · 907 BRawPermalink
1import argparse
2
3def parse_args():
4 parser = argparse.ArgumentParser()
5 parser.add_argument("--engine", choices=["local", "assistants"], default="local", help="Choose the engine to use.")
6 parser.add_argument("--test", nargs='*', help="Run the tests.")
7 parser.add_argument("--create-task", type=str, help="Create a new task with the given description.")
8 parser.add_argument("task_description", type=str, nargs="?", default="", help="Description of the task to create.")
9 parser.add_argument("--assistant", type=str, help="Specify the assistant for the new task.")
10 parser.add_argument("--evaluate", action="store_true", help="Set the evaluate flag for the new task.")
11 parser.add_argument("--iterate", action="store_true", help="Set the iterate flag for the new task.")
12 parser.add_argument("--input", action="store_true", help="If we want CLI")
13
14 return parser.parse_args()