MCPcopy Create free account
hub / github.com/IBM/AssetOpsBench / _build_parser

Function _build_parser

src/agent/direct_llm_agent/cli.py:18–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17
18def _build_parser() -> argparse.ArgumentParser:
19 parser = argparse.ArgumentParser(
20 prog="direct-llm-agent",
21 description="Run a question through a direct model-only LLM baseline.",
22 formatter_class=argparse.RawDescriptionHelpFormatter,
23 epilog="""
24model-id format:
25 tokenrouter/<model> TokenRouter (OpenAI-compatible) model [default]
26 e.g. tokenrouter/MiniMax-M3
27 litellm_proxy/<model> LiteLLM proxy model
28 e.g. litellm_proxy/Azure/gpt-5-mini-2025-08-07
29
30environment variables:
31 TOKENROUTER_API_KEY TokenRouter API key (for tokenrouter/* models)
32 TOKENROUTER_BASE_URL TokenRouter base URL (e.g. https://api.tokenrouter.com/v1)
33 LITELLM_API_KEY LiteLLM API key (for litellm_proxy/* models)
34 LITELLM_BASE_URL LiteLLM base URL
35
36examples:
37 direct-llm-agent 'Return only JSON: {"test": 1}'
38 direct-llm-agent --model-id tokenrouter/MiniMax-M3 'Return only one integer.'
39""",
40 )
41 add_common_args(parser, default_model=_DEFAULT_MODEL)
42 return parser
43
44
45def _build_llm(model_id: str):

Callers

nothing calls this directly

Calls 1

add_common_argsFunction · 0.90

Tested by

no test coverage detected