Skip to content

Commit 7c73da9

Browse files
committed
fix: pass context_wrapper to _coerce_apply_patch_operation in ApplyPatchAction
1 parent 4132824 commit 7c73da9

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
@@ -2460,7 +2460,10 @@ async def execute(
24602460
config: RunConfig,
24612461
) -> RunItem:
24622462
apply_patch_tool = call.apply_patch_tool
2463-
operation = _coerce_apply_patch_operation(call.tool_call)
2463+
operation = _coerce_apply_patch_operation(
2464+
call.tool_call,
2465+
context_wrapper=context_wrapper,
2466+
)
24642467

24652468
# Extract call_id from tool_call
24662469
call_id = _extract_apply_patch_call_id(call.tool_call)

0 commit comments

Comments
 (0)