small fixes

This commit is contained in:
Kujtim Hoxha
2025-04-03 17:36:40 +02:00
parent cfdd687216
commit 795b369219
7 changed files with 13 additions and 24 deletions

View File

@@ -80,7 +80,7 @@ func (e *editTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error)
if err != nil {
return NewTextErrorResponse(fmt.Sprintf("error creating file: %s", err)), nil
}
return NewTextErrorResponse(result), nil
return NewTextResponse(result), nil
}
if params.NewString == "" {
@@ -88,7 +88,7 @@ func (e *editTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error)
if err != nil {
return NewTextErrorResponse(fmt.Sprintf("error deleting content: %s", err)), nil
}
return NewTextErrorResponse(result), nil
return NewTextResponse(result), nil
}
result, err := replaceContent(params.FilePath, params.OldString, params.NewString)