The whole hunk
from line 553, old and new numbered
/
lines
from line 553
553553 for (BetaToolUseBlock toolUse : toolUses) {
554554 Map<String, JsonValue> input =
555555 (Map<String, JsonValue>) toolUse._input().asObject().orElseThrow();
556 String path = Optional.ofNullable(input.get("path"))
557 .flatMap(JsonValue::asString)
558 .orElse("");
556 JsonValue pathValue = input.get("path");
557 String path = pathValue != null && pathValue.asString().isPresent()
558 ? pathValue.asStringOrThrow()
559 : "";
559560 String fileText = FILES.get(path);
560561 BetaToolResultBlockParam.Builder result = BetaToolResultBlockParam.builder()
561562 .toolUseId(toolUse.id());