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

Method activate

tests/sandbox/test_docker.py:518–532  ·  view source on GitHub ↗
(
                self,
                strategy: InContainerMountStrategy,
                session: BaseSandboxSession,
                dest: Path,
                base_dir: Path,
            )

Source from the content-addressed store, hash-verified

516 _ = strategy
517
518 async def activate(
519 self,
520 strategy: InContainerMountStrategy,
521 session: BaseSandboxSession,
522 dest: Path,
523 base_dir: Path,
524 ) -> list[MaterializedFile]:
525 _ = (strategy, base_dir)
526 mount_path = mount._resolve_mount_path(session, dest)
527 host_path = cast(_HostBackedDockerSession, session)._host_path(mount_path)
528 host_path.mkdir(parents=True, exist_ok=True)
529 mount._events.append(("mount", mount_path.as_posix()))
530 if mount.remount_marker is not None:
531 (host_path / mount.remount_marker).write_text("remounted", encoding="utf-8")
532 return []
533
534 async def deactivate(
535 self,

Callers

nothing calls this directly

Calls 5

_resolve_mount_pathMethod · 0.80
appendMethod · 0.80
write_textMethod · 0.80
_host_pathMethod · 0.45
mkdirMethod · 0.45

Tested by

no test coverage detected