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

Function _run

src/agent/openai_agent/cli.py:52–59  ·  view source on GitHub ↗
(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

50
51
52async def _run(args: argparse.Namespace) -> None:
53 from agent.openai_agent.runner import OpenAIAgentRunner
54
55 runner = OpenAIAgentRunner(model=args.model_id, max_turns=args.max_turns)
56 result = await runner.run(args.question)
57 print_result(
58 result, show_trajectory=args.show_trajectory, output_json=args.output_json
59 )
60
61
62def main() -> None:

Callers

nothing calls this directly

Calls 3

runMethod · 0.95
OpenAIAgentRunnerClass · 0.90
print_resultFunction · 0.85

Tested by

no test coverage detected