MCPcopy Index your code
hub / github.com/SkyworkAI/DeepResearchAgent / parse_args

Function parse_args

tests/test_variables.py:26–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24from src.agent import acp
25
26def 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
43async def main():
44 args = parse_args()

Callers 1

mainFunction · 0.70

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected