MCPcopy Create free account
hub / github.com/openai/openai-agents-python / stop

Method stop

tests/sandbox/test_runtime.py:293–298  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

291 self.state.snapshot = _MarkerSnapshot(id="marker")
292
293 async def stop(self) -> None:
294 self.stop_calls += 1
295 self._running = False
296 await self._stop_gate.wait()
297 snapshot = cast(_MarkerSnapshot, self.state.snapshot)
298 self.state.snapshot = snapshot.model_copy(update={"marker": "persisted"})
299
300
301class _ProvisioningFailureSession(_FakeSession):

Callers

nothing calls this directly

Calls 1

waitMethod · 0.45

Tested by

no test coverage detected