MCPcopy Index your code
hub / github.com/openai/openai-agents-python / dispose_computer

Function dispose_computer

examples/tools/computer_use.py:290–296  ·  view source on GitHub ↗
(
        *,
        run_context: RunContextWrapper[Any],
        computer: LocalPlaywrightComputer,
    )

Source from the content-addressed store, hash-verified

288 return await LocalPlaywrightComputer().open()
289
290 async def dispose_computer(
291 *,
292 run_context: RunContextWrapper[Any],
293 computer: LocalPlaywrightComputer,
294 ) -> None:
295 print(f"Disposing computer for run context: {run_context}")
296 await computer.close()
297
298 await run_agent(
299 ComputerProvider[LocalPlaywrightComputer](

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected