| 34 | |
| 35 | |
| 36 | def parse_args(): |
| 37 | parser = argparse.ArgumentParser(description='Reflection optimization for tool calling agent') |
| 38 | parser.add_argument("--config", default=os.path.join(root, "configs", "tool_calling_agent.py"), help="config file path") |
| 39 | |
| 40 | parser.add_argument( |
| 41 | '--cfg-options', |
| 42 | nargs='+', |
| 43 | action=DictAction, |
| 44 | help='override some settings in the used config, the key-value pair ' |
| 45 | 'in xxx=yyy format will be merged into config file. If the value to ' |
| 46 | 'be overwritten is a list, it should be like key="[a,b]" or key=a,b ' |
| 47 | 'It also allows nested list/tuple values, e.g. key="[(a,b),(c,d)]" ' |
| 48 | 'Note that the quotation marks are necessary and that no white space ' |
| 49 | 'is allowed.') |
| 50 | args = parser.parse_args() |
| 51 | return args |
| 52 | |
| 53 | |
| 54 | async def main(): |