| 18 | from src.environments import GitHubEnvironment |
| 19 | |
| 20 | def parse_args(): |
| 21 | parser = argparse.ArgumentParser(description='main') |
| 22 | parser.add_argument("--config", default=os.path.join(root, "configs", "tool_calling_agent.py"), help="config file path") |
| 23 | |
| 24 | parser.add_argument( |
| 25 | '--cfg-options', |
| 26 | nargs='+', |
| 27 | action=DictAction, |
| 28 | help='override some settings in the used config, the key-value pair ' |
| 29 | 'in xxx=yyy format will be merged into config file. If the value to ' |
| 30 | 'be overwritten is a list, it should be like key="[a,b]" or key=a,b ' |
| 31 | 'It also allows nested list/tuple values, e.g. key="[(a,b),(c,d)]" ' |
| 32 | 'Note that the quotation marks are necessary and that no white space ' |
| 33 | 'is allowed.') |
| 34 | args = parser.parse_args() |
| 35 | return args |
| 36 | |
| 37 | async def test_github_system(): |
| 38 | # secret_from_env returns a function, need to call it to get the actual value |