Skip to content

Commit af56baf

Browse files
committed
fix: pass context_wrapper to _coerce_apply_patch_operation in ApplyPatchAction
1 parent 1f6b051 commit af56baf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/agents/_run_impl.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2442,7 +2442,10 @@ async def execute(
24422442
config: RunConfig,
24432443
) -> RunItem:
24442444
apply_patch_tool = call.apply_patch_tool
2445-
operation = _coerce_apply_patch_operation(call.tool_call)
2445+
operation = _coerce_apply_patch_operation(
2446+
call.tool_call,
2447+
context_wrapper=context_wrapper,
2448+
)
24462449

24472450
# Extract call_id from tool_call
24482451
call_id = _extract_apply_patch_call_id(call.tool_call)

0 commit comments

Comments
 (0)