MCPcopy Index your code
hub / github.com/IBM/AssetOpsBench / _build_llm

Function _build_llm

src/agent/cli.py:60–70  ·  view source on GitHub ↗
(model_id: str)

Source from the content-addressed store, hash-verified

58
59
60def _build_llm(model_id: str):
61 try:
62 from llm import make_backend
63 except ImportError as exc:
64 print(f"error: {exc}", file=sys.stderr)
65 sys.exit(1)
66 try:
67 return make_backend(model_id)
68 except KeyError as exc:
69 print(f"error: missing environment variable {exc}", file=sys.stderr)
70 sys.exit(1)
71
72
73def _print_section(title: str) -> None:

Callers 1

_runFunction · 0.70

Calls 1

make_backendFunction · 0.90

Tested by

no test coverage detected