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

Method update_file

tests/test_apply_patch_tool.py:399–401  ·  view source on GitHub ↗
(self, operation: ApplyPatchOperation)

Source from the content-addressed store, hash-verified

397
398 class MixedStatusEditor(RecordingEditor):
399 def update_file(self, operation: ApplyPatchOperation) -> ApplyPatchResult:
400 self.operations.append(operation)
401 return ApplyPatchResult(status="failed", output=f"Failed {operation.path}")
402
403 def create_file(self, operation: ApplyPatchOperation) -> ApplyPatchResult:
404 self.operations.append(operation)

Callers

nothing calls this directly

Calls 2

ApplyPatchResultClass · 0.90
appendMethod · 0.80

Tested by

no test coverage detected