Skip to content

Commit fdc1bbb

Browse files
committed
fix: remove dead code and add failing hitl error scenarios
1 parent 6a9a635 commit fdc1bbb

File tree

2 files changed

+152
-111
lines changed

2 files changed

+152
-111
lines changed

tests/fake_model.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,11 @@ async def get_response(
128128
for item in output:
129129
if isinstance(item, dict) and item.get("type") == "apply_patch_call":
130130
import json
131+
131132
operation = item.get("operation", {})
132-
operation_json = json.dumps(operation) if isinstance(operation, dict) else str(operation)
133+
operation_json = (
134+
json.dumps(operation) if isinstance(operation, dict) else str(operation)
135+
)
133136
converted_item = ResponseCustomToolCall(
134137
type="custom_tool_call",
135138
name="apply_patch",

0 commit comments

Comments
 (0)