MCPcopy Create free account
hub / github.com/SkyworkAI/DeepResearchAgent / parse_args

Function parse_args

examples/run_tool_calling_agent_reflection.py:36–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35
36def 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
54async def main():

Callers 1

mainFunction · 0.70

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected