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

Method _relative_path

examples/tools/apply_patch.py:65–67  ·  view source on GitHub ↗
(self, value: str)

Source from the content-addressed store, hash-verified

63 return ApplyPatchResult(output=f"Deleted {relative}")
64
65 def _relative_path(self, value: str) -> str:
66 resolved = self._resolve(value)
67 return resolved.relative_to(self._root).as_posix()
68
69 def _resolve(self, relative: str, ensure_parent: bool = False) -> Path:
70 candidate = Path(relative)

Callers 3

create_fileMethod · 0.95
update_fileMethod · 0.95
delete_fileMethod · 0.95

Calls 1

_resolveMethod · 0.95

Tested by

no test coverage detected