Astridkraft commited on
Commit
3c8a370
·
verified ·
1 Parent(s): acfdaee

Update agent/core.py

Browse files
Files changed (1) hide show
  1. agent/core.py +6 -2
agent/core.py CHANGED
@@ -471,9 +471,13 @@ class CodeAgent:
471
 
472
  # Spezialbehandlungen für verschiedene Fix-Typen
473
  if fix_type == "read_file":
474
- self._log(__name__, "read_file Spezialbehandlung")
475
  result = method(kwargs.get("filepath"))
476
-
 
 
 
 
 
477
  elif fix_type == "replace_line":
478
  self._log(__name__, "replace_line Spezialbehandlung")
479
  result = method(
 
471
 
472
  # Spezialbehandlungen für verschiedene Fix-Typen
473
  if fix_type == "read_file":
 
474
  result = method(kwargs.get("filepath"))
475
+ elif fix_type == "replace_line":
476
+ result = method(
477
+ kwargs.get("filepath"),
478
+ int(kwargs.get("line")),
479
+ kwargs.get("content")
480
+ )
481
  elif fix_type == "replace_line":
482
  self._log(__name__, "replace_line Spezialbehandlung")
483
  result = method(