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