| 340 | logger.info(f"| --------------------------------------------------") |
| 341 | |
| 342 | def parse_args(): |
| 343 | parser = argparse.ArgumentParser(description='main') |
| 344 | parser.add_argument("--config", default=os.path.join(root, "configs", "tool_calling_agent.py"), help="config file path") |
| 345 | |
| 346 | parser.add_argument( |
| 347 | '--cfg-options', |
| 348 | nargs='+', |
| 349 | action=DictAction, |
| 350 | help='override some settings in the used config, the key-value pair ' |
| 351 | 'in xxx=yyy format will be merged into config file. If the value to ' |
| 352 | 'be overwritten is a list, it should be like key="[a,b]" or key=a,b ' |
| 353 | 'It also allows nested list/tuple values, e.g. key="[(a,b),(c,d)]" ' |
| 354 | 'Note that the quotation marks are necessary and that no white space ' |
| 355 | 'is allowed.') |
| 356 | args = parser.parse_args() |
| 357 | return args |
| 358 | |
| 359 | async def main(): |
| 360 | args = parse_args() |