MCPcopy
hub / github.com/IBM/AssetOpsBench / _run

Function _run

src/agent/opencode_agent/cli.py:132–154  ·  view source on GitHub ↗
(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

130
131
132async def _run(args: argparse.Namespace) -> None:
133 from agent.opencode_agent.runner import OpenCodeAgentRunner
134
135 runner = OpenCodeAgentRunner(
136 model=args.model_id,
137 max_steps=args.max_steps,
138 agent_name=args.agent_name,
139 opencode_bin=args.opencode_bin,
140 attach=args.attach,
141 timeout_s=args.timeout_s,
142 thinking=args.thinking,
143 variant=args.variant,
144 allow_bash=args.allow_bash,
145 allow_edit=args.allow_edit,
146 allow_web=args.allow_web,
147 allow_files=args.allow_files,
148 workspace_dir=args.workspace_dir,
149 dangerously_skip_permissions=not args.ask_permissions,
150 )
151 result = await runner.run(args.question)
152 print_result(
153 result, show_trajectory=args.show_trajectory, output_json=args.output_json
154 )
155
156
157def main() -> None:

Callers

nothing calls this directly

Calls 3

runMethod · 0.95
OpenCodeAgentRunnerClass · 0.90
print_resultFunction · 0.85

Tested by

no test coverage detected